diff --git a/config/keymaps.nix b/config/keymaps.nix index 6db2506..b524b3f 100644 --- a/config/keymaps.nix +++ b/config/keymaps.nix @@ -65,7 +65,61 @@ options = { silent = true; noremap = true; - desc = "Go to definition"; + desc = "Go to definition, or search through them (if multiple)"; + }; + } + { + action = "lua require'telescope.builtin'.lsp_implementations{}"; + key = "gr"; + options = { + silent = true; + noremap = true; + desc = "Go to implementation"; + }; + } + { + action = "lua require'telescope.builtin'.lsp_workplace_symbols{}"; + key = "fs"; + options = { + silent = true; + noremap = true; + desc = "List and search through document symbols"; + }; + } + { + action = "lua require'telescope.builtin'.lsp_type_definitions{}"; + key = "fct"; + options = { + silent = true; + noremap = true; + desc = "List and search through type definitions"; + }; + } + { + action = "lua require'telescope.builtin'.lsp_references{}"; + key = "fcr"; + options = { + silent = true; + noremap = true; + desc = "List and search through references"; + }; + } + { + action = "lua require'telescope.builtin'.diagnostics{}"; + key = "fcd"; + options = { + silent = true; + noremap = true; + desc = "List and search through diagnostics"; + }; + } + { + action = "lua require'telescope.builtin'.keymaps{}"; + key = "fcd"; + options = { + silent = true; + noremap = true; + desc = "Search through keymaps"; }; } {