Skip to content

add .luarc.json for lua-language-server and fix a couple of nits #1296

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 28, 2022

Conversation

alex-courtis
Copy link
Member

@alex-courtis alex-courtis commented May 28, 2022

I am now addicted to lsp lua, using https://github.com/sumneko/lua-language-server

Add a configuration file and fix a couple of nits it identified.

},
"disable": {
"lowercase-global": true,
"missing-parameter": true
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is reasonable; a lot of lua code automatically passes nil when no arguments specified.

@@ -92,7 +92,7 @@ local function from_coc()

for bufname, severity_list in pairs(diagnostics) do
if not buffer_severity[bufname] then
local severity = math.min(unpack(severity_list))
local severity = math.min(table.unpack(severity_list))
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

deprecated

@kyazdani42 kyazdani42 merged commit c3b7be8 into master May 28, 2022
@kyazdani42 kyazdani42 deleted the lua-language-server-config-and-fixes branch May 28, 2022 09:16
Almo7aya pushed a commit to Almo7aya/nvim-tree.lua that referenced this pull request Oct 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants