From 802200f3f78f858904590d4510cbd1eec7ae8c6c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Kn=C3=BCttel?= Date: Mon, 20 Sep 2021 18:25:13 +0200 Subject: [PATCH] added some more lsp related keybindings --- init.vim | 7 +++++++ 1 file changed, 7 insertions(+) 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