From fcb727cea08a308f0405d064782443a98a06425c Mon Sep 17 00:00:00 2001 From: David JULIEN Date: Sun, 29 Jan 2023 00:27:05 +0100 Subject: [PATCH] [nvim] feat: add Telescope keymaps tk to list keymaps tx to list diagnostics --- .config/nvim/lua/maps.lua | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.config/nvim/lua/maps.lua b/.config/nvim/lua/maps.lua index d137c60..881dff0 100644 --- a/.config/nvim/lua/maps.lua +++ b/.config/nvim/lua/maps.lua @@ -90,6 +90,16 @@ vim.keymap.set("n", "tl", function() require("telescope.builtin").live_grep() end, { desc = "Grep interactively" } ) +vim.keymap.set("n", "tk", + function() require("telescope.builtin").keymaps() end, + { desc = "Search through keymaps" } +) +vim.keymap.set("n", "tx", + function() require("telescope.builtin").diagnostics( + { buffnr = 0 } + ) end, + { desc = "Search through LSP diagnostics" } +) -- colorscheme vim.keymap.set("n", "s",