X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=vim%2F.vim%2Fplugin%2Flsp.vim;h=bcef27286c0acccd5837ce86168f19002fa99063;hb=3d3f800f68264c3733627bbd435ba0aee2733cf1;hp=13d51d5aeb8bad48e54c8a58e30a43d85e0892a8;hpb=31daf53ac7ef57c39cc0f11762d74228763b8dd7;p=dotfiles.git diff --git a/vim/.vim/plugin/lsp.vim b/vim/.vim/plugin/lsp.vim index 13d51d5..bcef272 100644 --- a/vim/.vim/plugin/lsp.vim +++ b/vim/.vim/plugin/lsp.vim @@ -1,18 +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) -autocmd! CompleteDone * if pumvisible() == 0 | pclose | 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)