Skip to content

Commit

Permalink
bugfix for #275
Browse files Browse the repository at this point in the history
  • Loading branch information
jayli committed Dec 12, 2023
1 parent 587984e commit 6ba26c2
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions autoload/easycomplete.vim
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ let g:easycomplete_maxlength = (&filetype == 'vim' && !has('nvim') ? 35 : 45)
let g:easycomplete_completechanged_event = {}
let g:easycomplete_diagnostics_render_delay = 200
let g:easycomplete_popup_delay = 170
let g:easycomplete_showmode = &showmode
" lsp server 是独占还是共享
let g:easycomplete_shared_lsp_server = 1
" 用来判断是否是 c-v 粘贴
Expand Down Expand Up @@ -1031,6 +1032,9 @@ function! easycomplete#CompleteShow()
call timer_start(2, { -> easycomplete#sources#ts#CompleteChanged() })
endif
endif
if g:easycomplete_showmode
setlocal noshowmode
endif
endfunction

function! s:CloseCompleteInfo()
Expand Down Expand Up @@ -1797,6 +1801,9 @@ function! s:flush()
call s:StopAsyncRun()
call s:AsyncRun(function("complete"),[col("."),[]], 50)
endif
if g:easycomplete_showmode
set showmode
endif
let s:easycomplete_start_pos = 0
endfunction

Expand Down

0 comments on commit 6ba26c2

Please sign in to comment.