X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=vim%2F.vim%2Fplugin%2Flsp.vim;h=d8c9167fe9e3a9c52b6686f07995466638b055d2;hb=c87a6c5de579ab6ae0e5d27b233b83bab85e17f6;hp=621548b542491a19c5fe41be7b5dcf0879840375;hpb=abeca38b2bf8282f0ad673286bc51fbaf59d27f2;p=dotfiles.git diff --git a/vim/.vim/plugin/lsp.vim b/vim/.vim/plugin/lsp.vim index 621548b..d8c9167 100644 --- a/vim/.vim/plugin/lsp.vim +++ b/vim/.vim/plugin/lsp.vim @@ -1,12 +1,13 @@ -let g:asyncomplete_auto_completeopt = 0 -let g:asyncomplete_auto_popup = 0 -imap (asyncomplete_force_refresh) +if exists('*on_lsp_buffer_enabled') | finish | endif + +let g:lsp_auto_enable = 1 -let g:lsp_highlight_references_enabled = 1 let g:lsp_diagnostics_echo_cursor = 1 let g:lsp_diagnostics_echo_delay = -1 +let g:lsp_signature_help_enabled = 0 function! s:on_lsp_buffer_enabled() abort + setlocal omnifunc=lsp#complete nmap [g (lsp-previous-diagnostic) nmap ]g (lsp-next-diagnostic) nmap gd (lsp-definition)