From ea8999a96c58b4426df284ad73a35c91883452f8 Mon Sep 17 00:00:00 2001 From: Youwen Wu Date: Wed, 18 Sep 2024 00:51:35 -0700 Subject: [PATCH] keys: add a ton of telescope keymaps --- config/keymaps.nix | 56 +++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 55 insertions(+), 1 deletion(-) 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"; }; } {