diff --git a/plugins/telescope.nix b/plugins/telescope.nix index 0e261fb..d15a11b 100644 --- a/plugins/telescope.nix +++ b/plugins/telescope.nix @@ -37,16 +37,15 @@ # └──────────────────────────────────────────────────┘ extraConfigLuaPre = '' local telescopeWithArgs = function(fn, args, extension) - -- args.layout_config = { - -- anchor = "N", - -- mirror = true, - -- width = 0.8, - -- } + args.layout_config = { + anchor = "N", + mirror = true, + width = 0.8, + } - -- if fn == "keymaps" or fn == "registers" then args.layout_config.height = function(_, _, max_lines) return max_lines end end + if fn == "keymaps" or fn == "registers" then args.layout_config.height = function(_, _, max_lines) return max_lines end end - -- local args_with_theme = require("telescope.themes").get_dropdown(args) - local args_with_theme = args + local args_with_theme = require("telescope.themes").get_dropdown(args) if extension ~= "" then require("telescope").extensions[extension][fn](args_with_theme) @@ -109,7 +108,7 @@ fn = "live_grep"; } { - desc = "Find help tags"; + desc = "Find help"; key = "fh"; fn = "help_tags"; } @@ -130,14 +129,33 @@ } { desc = "Find word under cursor"; - key = "fw"; + key = "f*"; fn = "grep_string"; } { desc = "Search references"; - key = "gr"; + key = "lR"; fn = "lsp_references"; } + { + desc = "Find marks"; + key = "f'"; + fn = "marks"; + } + { + desc = "Find commands"; + key = "fC"; + fn = "commands"; + } + { + desc = "Find themes"; + key = "ft"; + fn = "colortheme"; + args = { + enable_preview = true; + ignore_builtins = true; + }; + } ]; }; }