nvim: LSP hover keybinding update
This commit is contained in:
parent
ba13df8802
commit
af9e9ffe53
@ -47,7 +47,7 @@ return {
|
|||||||
end, opts) -- jump to next diagnostic in buffer
|
end, opts) -- jump to next diagnostic in buffer
|
||||||
|
|
||||||
opts.desc = "Show documentation for what is under cursor"
|
opts.desc = "Show documentation for what is under cursor"
|
||||||
keymap.set("n", "<leader>ch", vim.lsp.buf.hover, opts) -- show documentation for what is under cursor
|
keymap.set("n", "gh", vim.lsp.buf.hover, opts) -- show documentation for what is under cursor
|
||||||
|
|
||||||
opts.desc = "Restart LSP"
|
opts.desc = "Restart LSP"
|
||||||
keymap.set("n", "<leader>cx", ":LspRestart<CR>", opts) -- mapping to restart lsp if necessary
|
keymap.set("n", "<leader>cx", ":LspRestart<CR>", opts) -- mapping to restart lsp if necessary
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user