Update nvim lsp config for ruby-lsp
This commit is contained in:
parent
b404b0d34d
commit
05b54919bc
1 changed files with 9 additions and 1 deletions
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue