From 31daf53ac7ef57c39cc0f11762d74228763b8dd7 Mon Sep 17 00:00:00 2001 From: Sergey Matveev Date: Sat, 11 Jul 2020 16:53:00 +0300 Subject: [PATCH] No asyncomplete's auto_popup, do only on demand --- vim/.vim/plugin/lsp.vim | 9 ++++++--- vim/.vimrc | 1 + 2 files changed, 7 insertions(+), 3 deletions(-) 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 -- 2.44.0