Add better movement and LSP-related help

This commit is contained in:
Levente Krizsán 2024-09-02 22:28:22 +02:00
parent 3ed9bfaee3
commit e7a9bf5949
5 changed files with 142 additions and 0 deletions

View file

@ -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