[nvim] feat: add Telescope keymaps

<leader>tk to list keymaps
<leader>tx to list diagnostics
This commit is contained in:
David JULIEN 2023-01-29 00:27:05 +01:00
parent debc21cc3a
commit fcb727cea0

View File

@ -90,6 +90,16 @@ vim.keymap.set("n", "<leader>tl",
function() require("telescope.builtin").live_grep() end,
{ desc = "Grep interactively" }
)
vim.keymap.set("n", "<leader>tk",
function() require("telescope.builtin").keymaps() end,
{ desc = "Search through keymaps" }
)
vim.keymap.set("n", "<leader>tx",
function() require("telescope.builtin").diagnostics(
{ buffnr = 0 }
) end,
{ desc = "Search through LSP diagnostics" }
)
-- colorscheme
vim.keymap.set("n", "<leader>s",