Add better movement and LSP-related help
This commit is contained in:
parent
3ed9bfaee3
commit
e7a9bf5949
5 changed files with 142 additions and 0 deletions
3
init.lua
3
init.lua
|
|
@ -549,6 +549,9 @@ require('lazy').setup({
|
|||
-- For example, in C this would take you to the header.
|
||||
map('gD', vim.lsp.buf.declaration, '[G]oto [D]eclaration')
|
||||
|
||||
map('<leader>ch', vim.lsp.buf.hover, '[C]ode [H]over item')
|
||||
map('<leader>cd', vim.diagnostic.open_float, '[C]ode [D]iagnostic for current line')
|
||||
|
||||
-- The following two autocommands are used to highlight references of the
|
||||
-- word under your cursor when your cursor rests there for a little while.
|
||||
-- See `:help CursorHold` for information about when this is executed
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue