Undefined global vim
#3356
Unanswered
ahmedelgabri
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I just can't get this to work properly. This is my
.luarc.jsoncfile{ "$schema": "https://raw.githubusercontent.com/LuaLS/vscode-lua/master/setting/schema.json", "diagnostics": { "enable": true, }, "runtime": { "version": "LuaJIT", "path": ["lua/?.lua", "lua/?/init.lua"], }, "workspace": { "checkThirdParty": false, "ignoreDir": ["**/undo/", ".direnv"], "ignoreGlobs": ["**/*_spec.lua"], "library": [ "$VIMRUNTIME", "${3rd}/luv/library", "$HOME/.local/share/nvim/lazy/luvit-meta/library/uv.lua", "$HOME/.local/share/nvim/lazy", ], }, }Yet I'm still getting
Undefined global 'vim'every time I open a lua file for neovim. If I do exactly the same thing insidelsp/lua_ls.luait works fine. I assume something is wrong with expanding the$VIMRUNTIMEfrom config?Beta Was this translation helpful? Give feedback.
All reactions