Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion plugin/codeium.vim
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ endfunction
augroup codeium
autocmd!
autocmd InsertEnter,CursorMovedI,CompleteChanged * call codeium#DebouncedComplete()
autocmd BufEnter * if codeium#Enabled()|call codeium#command#StartLanguageServer()|endif
" Start server on first insert instead of BufEnter to avoid startup issues
autocmd InsertEnter * if codeium#Enabled() && !get(g:, 'codeium_server_started', v:false)|call codeium#command#StartLanguageServer()|endif
autocmd BufEnter * if mode() =~# '^[iR]'|call codeium#DebouncedComplete()|endif
autocmd InsertLeave * call codeium#Clear()
autocmd BufLeave * if mode() =~# '^[iR]'|call codeium#Clear()|endif
Expand Down