From 97875214fa1c51c9134b93e0c8d2038d2e3352ad Mon Sep 17 00:00:00 2001 From: Julian Ospald Date: Mon, 12 Oct 2020 00:04:45 +0200 Subject: [PATCH] Update vim-lsp settings --- after/plugin/plugin_settings.vim | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/after/plugin/plugin_settings.vim b/after/plugin/plugin_settings.vim index 4c12e35..dda822b 100644 --- a/after/plugin/plugin_settings.vim +++ b/after/plugin/plugin_settings.vim @@ -195,12 +195,14 @@ function! s:on_lsp_buffer_enabled() abort if exists('+tagfunc') | setlocal tagfunc=lsp#tagfunc | endif nmap gd (lsp-definition) nmap gr (lsp-references) - nmap gi (lsp-implementation) - nmap gt (lsp-type-definition) + " nmap gi (lsp-implementation) + " nmap gt (lsp-type-definition) nmap rn (lsp-rename) - nmap [g (lsp-previous-diagnostic) - nmap ]g (lsp-next-diagnostic) - nmap K (lsp-hover) + nmap .g (lsp-previous-diagnostic) + nmap ,g (lsp-next-diagnostic) + nmap T (lsp-hover) + nmap la (lsp-code-action) + nmap sd (lsp-document-diagnostics) " refer to doc to add more commands endfunction @@ -213,4 +215,4 @@ augroup END let g:lsp_auto_enable = 0 -command -nargs=0 LspStart call lsp#activate() +" command -nargs=0 LspStart call lsp#activate()