How to configure this for editing neovim's configuration files?
I wish to use this mainly to edit the config files for neovim. However with my current configuration, whenever I save the file, it does "Diagnose Workspace x/817", which takes ages.
I don't understand which files it is trying to diagnose and why. The lua files I'm editing are in ~/.vim
My current config file is this
"Lua.addonManager.enable": true,
"Lua.codeLens.enable": true,
"Lua.completion.enable": true,
"Lua.completion.keywordSnippet": "Both",
"Lua.completion.displayContext": 10,
"Lua.format.enable": true,
"Lua.workspace.library": [
"/usr/share/nvim/runtime/lua",
"/usr/share/nvim/runtime/lua/vim",
"/usr/share/nvim/runtime/lua/vim/lsp",
"~/.vim/plugged/**/lua/"
],
"Lua.workspace.ignoreDir": [
".vscode",
"plugged",
".git"
],
"Lua.diagnostics.globals": [
"vim"
],
"Lua.diagnostics.workspaceRate": 100,
"Lua.doc.privateName": [
"m_*"
],
"Lua.hint.enable": true,
I found out why it was taking forever. It tried parsing every file in ~/.vim/ including subdirectories, which also had my backup, swap files and undo files. I moved all the files I source from my vim config into their own config directory and it loads a lot faster now.
At least it doesn't do that diagnosing workspace thing. Instead it gives me "loaded more than 10000 files" after a few minutes, where there are only 703 lua files in ~/.vim/plugged/ and only 76 in /usr/share/nvim/runtime/lua/.
I also can't get it to recognize the members when I use require(). For example require('neo-tree') would be pulled from ~/.vim/plugged/neo-tree.nvim/lua/neo-tree.lua.
There is no LSP completions and the status bar says
Loading Workspace 0/508 Loading Workspace 0/520
with two running indicators that don't move except when I move the cursor around.
I got it to load once, but not anymore. I don't think I changed anything.
My updated config
"Lua.addonManager.enable": true,
"Lua.codeLens.enable": true,
"Lua.completion.enable": true,
"Lua.completion.keywordSnippet": "Both",
"Lua.completion.displayContext": 10,
"Lua.format.enable": true,
"Lua.workspace.library": [
"/usr/share/nvim/runtime/lua",
"/usr/share/nvim/runtime/lua/vim",
"/usr/share/nvim/runtime/lua/vim/lsp",
"~/.vim/plugged"
],
"Lua.workspace.ignoreDir": [
".vscode",
".git"
],
"Lua.diagnostics.globals": [
"vim"
],
"Lua.runtime.path": [
"?.lua",
"?/init.lua",
"?/lua/?.lua",
"?.nvim/lua/?.lua"
],
"Lua.diagnostics.workspaceRate": 100,
"Lua.doc.privateName": [
"m_*"
],
"Lua.hint.enable": true,