Exafunction / codeium.vim

Free, ultrafast Copilot alternative for Vim and Neovim
https://codeium.com
MIT License
4.12k stars 147 forks source link

Modify `StartLanguageServer` to be called conditionally on `BufEnter`. #344

Closed zArubaru closed 6 months ago

zArubaru commented 6 months ago

This is related to PR #252

Forcing the filetype '' to 1 had the unintended side-effect of always enabling codeium for new empty buffers when using codeium_filetypes_disabled_by_default.

Now that we conditionally run StartLanguageServer on BufEnter, we don't need to separately call it during startup.

(As StartLanguageServer's contents are wrapped by a check of codeium_server_started, we don't need to worry about multiple server starts.)