How can I make lua-language-server to fail on style (formatting) errors?
#2478
Answered
by
CppCXY
itaranto
asked this question in
General Questions
|
I'm using Neovim and I'd like to use the This is pretty useful for using it in a CI/CD pipeline. According to the docs, It seems I need to add the following into my LSP config: Lua = {
-- ...
diagnostics = {
neededFileStatus = {
["codestyle-check"] = "Any"
},
},
-- ...
}But if I run: It doesn't seem to be reporting style errors. Am I doing something wrong? |
Answered by
CppCXY
Jan 14, 2024
Replies: 2 comments
|
So, it seems that using the "diagnostics.neededFileStatus": {
"codestyle-check": "Any"
},But now it seems to be reporting style errors from the Lua runtime: |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can download the cli version of the formatting tool from here