Exafunction / codeium.vim

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

handle variable not existing more gracefully #112

Closed sigmaSd closed 1 year ago

sigmaSd commented 1 year ago

If I start nvim with nvim +commnd +q to update it from the cli for example, the global variable might be not yet set when we reach the exit function so it will cause an error: undefined variable codeium_server_job

Using get handle this case, it returns 0 when the variable is not set yet instead of an error

My actual use case is updating lunarvim from the cli with lvim +LvimUpdate +q

fortenforge commented 1 year ago

Thanks!