diff --git a/autoload/easycomplete.vim b/autoload/easycomplete.vim index 7ec7bc22..8823a07b 100644 --- a/autoload/easycomplete.vim +++ b/autoload/easycomplete.vim @@ -1476,6 +1476,11 @@ function! s:FirstCompleteRendering(start_pos, menuitems) call s:flush() return endif + " 如果 aone_copilot 已经给了提示,那么就暂停展示 pum + if exists("g:aone_copilot_ready") && g:aone_copilot_ready && aone_copilot#copilot_snippet_ready() + call s:flush() + return + endif let typing_word = s:GetTypingWord() let should_stop_render = 0 try @@ -2039,6 +2044,7 @@ function! easycomplete#CursorHold() \ && easycomplete#ok('g:easycomplete_diagnostics_hover') call easycomplete#sign#LintPopup() endif + call easycomplete#lint() endfunction function! easycomplete#CursorHoldI() diff --git a/autoload/easycomplete/action/diagnostics.vim b/autoload/easycomplete/action/diagnostics.vim index 9d531a5b..e076371e 100644 --- a/autoload/easycomplete/action/diagnostics.vim +++ b/autoload/easycomplete/action/diagnostics.vim @@ -4,6 +4,10 @@ let s:response_ready = 0 function! easycomplete#action#diagnostics#do() " 确保从这里 fire 的 diagnostic 才会被更新渲染 + if easycomplete#util#GetLspPluginName() == "ts" + call easycomplete#sources#ts#lint() + return + endif if !easycomplete#util#LspServerReady() | return | endif call easycomplete#lsp#notify_diagnostics_update() let s:response_ready = 0