Update nvim lsp config for ruby-lsp

This commit is contained in:
Talia 2024-10-01 11:22:40 +02:00
parent b404b0d34d
commit 05b54919bc

View file

@ -20,6 +20,8 @@ setmetatable(default, {__call = function(self, other)
return new
end})
-- init_options -> during server initialization
-- settings -> sent as config change event right after initialization
local configs = setmetatable({
yamlls = default {
settings = {
@ -28,6 +30,12 @@ local configs = setmetatable({
}
}
},
ruby_lsp = default {
init_options = {
formatter = "standard";
linters = { "standard" };
}
},
}, {__index = function() return default end})
for _, language in ipairs {
@ -35,8 +43,8 @@ for _, language in ipairs {
"cssls",
"html",
"lua_ls",
"solargraph",
"ruby_lsp",
"solargraph",
"standardrb",
"svelte",
"tsserver",