diff --git a/init.vim b/init.vim index ed401a0..7840f75 100644 --- a/init.vim +++ b/init.vim @@ -172,7 +172,14 @@ highlight LspDiagnosticsDefaultWarning guifg=BrightYellow " This allows to jump to the definition, and " show some documentation respectively. nnoremap gd lua vim.lsp.buf.definition() +nnoremap gD lua vim.lsp.buf.declaration() nnoremap gh lua vim.lsp.buf.hover() +nnoremap gi lua vim.lsp.buf.implementation() +nnoremap ca lua vim.lsp.buf.code_action() +nnoremap rn lua vim.lsp.buf.rename() +nnoremap [d lua vim.lsp.diagnostic.goto_prev() +nnoremap ]d lua vim.lsp.diagnostic.goto_next() + " This part sets up lsp diagnostics. lua << EOF