Closed AdamWagner closed 4 years ago
Thanks you for your advice. These are pretty good! You can update directly to the wiki yourself. I hope that wikis can be jointly maintained by the community, especially those on non Windows Platforms and non vscode environments.
One small problem: Lua.runtime.version
should be Lua 5.4
instead of 5.4.0
.
@sumneko Thanks, I updated the wiki directly: https://github.com/sumneko/lua-language-server/wiki/Setting-without-VSCode
Hi! First, thanks a lot for maintaining this! It's very useful.
I'm posting this in the hope that it'll save someone else from spending an afternoon making (mostly random) changes to their
coc-settings.json
in the struggle to configurelua-language-server
settings in vim using coc.nvim.Two general rules:
"Lua.whatever…"
settings you may see around the 'net go inside of asettings: {…}
key (sibling torootPatterns
)."Lua.diagnostics.disable": ["lowercase-global"]
, use"Lua": { "diagnostics": { "disable": ["lowercase-global"] }}
Examples of what NOT to do
This does NOT work
This also does NOT work
Working example
The following works for me using:
vim version: NVIM v0.5.0-789-gca7449db4 node version: v15.0.1 coc.nvim version: 0.0.79-3e5fbe3a93 term: xterm-kitty platform: darwin