From: Sergey Matveev Date: Sat, 11 Jul 2020 13:53:00 +0000 (+0300) Subject: No asyncomplete's auto_popup, do only on demand X-Git-Url: http://www.git.stargrave.org/?p=dotfiles.git;a=commitdiff_plain;h=31daf53ac7ef57c39cc0f11762d74228763b8dd7 No asyncomplete's auto_popup, do only on demand --- diff --git a/vim/.vim/plugin/lsp.vim b/vim/.vim/plugin/lsp.vim index 1348fc4..13d51d5 100644 --- a/vim/.vim/plugin/lsp.vim +++ b/vim/.vim/plugin/lsp.vim @@ -1,15 +1,18 @@ +let g:lsp_settings_enable_suggestions = 0 let g:lsp_settings = { \ 'clangd': {'cmd': ['clangd60']}, \} let g:asyncomplete_auto_completeopt = 0 -let g:lsp_settings_enable_suggestions = 0 +let g:asyncomplete_auto_popup = 0 +imap (asyncomplete_force_refresh) +autocmd! CompleteDone * if pumvisible() == 0 | pclose | endif + let g:lsp_highlight_references_enabled = 1 let g:lsp_diagnostics_echo_cursor = 1 +let g:lsp_diagnostics_echo_delay = -1 function! s:on_lsp_buffer_enabled() abort - setlocal completeopt=menuone,noinsert,noselect - setlocal omnifunc=lsp#complete nmap [g (lsp-previous-diagnostic) nmap ]g (lsp-next-diagnostic) nmap gd (lsp-definition) diff --git a/vim/.vimrc b/vim/.vimrc index ab10103..d44abc3 100644 --- a/vim/.vimrc +++ b/vim/.vimrc @@ -33,6 +33,7 @@ set showcmd set showmatch set listchars=trail:·,tab:>→,nbsp:% ",eol:¶ set list +set completeopt-=preview set cursorline set cursorcolumn