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
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 errorMy actual use case is updating lunarvim from the cli with
lvim +LvimUpdate +q