NeoVim: better telescope key bindings
This commit is contained in:
parent
b580e65d77
commit
b9954f7e37
1 changed files with 2 additions and 0 deletions
|
|
@ -24,6 +24,8 @@ local on_attach = function(client, bufnr)
|
|||
keymap.set({ "n", "v" }, "<leader>ca", vim.lsp.buf.code_action, opts)
|
||||
opts.desc = "Smart rename"
|
||||
keymap.set("n", "<leader>rn", vim.lsp.buf.rename, opts)
|
||||
opts.desc = "Smart show diagnostics"
|
||||
keymap.set("n", "<leader>D", "<cmd>Telescope diagnostics", opts)
|
||||
opts.desc = "Smart show buffer diagnostics"
|
||||
keymap.set("n", "<leader>D", "<cmd>Telescope diagnostics bufnr=0<CR>", opts)
|
||||
opts.desc = "Smart show line diagnostics"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue