X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=vim%2F.vim%2Fplugin%2Flsp.vim;h=bcef27286c0acccd5837ce86168f19002fa99063;hb=73a099ef9d2d01a75c13dee7efce9ece5f99dc74;hp=104f1d10f1e7fef43f3d9849e1f9a3c72687e560;hpb=48c99c15b75ce79d23195edfc6f6e3c26a84d301;p=dotfiles.git diff --git a/vim/.vim/plugin/lsp.vim b/vim/.vim/plugin/lsp.vim index 104f1d1..bcef272 100644 --- a/vim/.vim/plugin/lsp.vim +++ b/vim/.vim/plugin/lsp.vim @@ -1,17 +1,13 @@ -let g:lsp_settings_enable_suggestions = 0 -let g:lsp_settings = { -\ 'clangd': {'cmd': ['clangd60']}, -\} +if exists("*on_lsp_buffer_enabled") | finish | endif -let g:asyncomplete_auto_completeopt = 0 -let g:asyncomplete_auto_popup = 0 -imap (asyncomplete_force_refresh) +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)