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
|
return new
|
||||||
end})
|
end})
|
||||||
|
|
||||||
|
-- init_options -> during server initialization
|
||||||
|
-- settings -> sent as config change event right after initialization
|
||||||
local configs = setmetatable({
|
local configs = setmetatable({
|
||||||
yamlls = default {
|
yamlls = default {
|
||||||
settings = {
|
settings = {
|
||||||
|
@ -28,6 +30,12 @@ local configs = setmetatable({
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
ruby_lsp = default {
|
||||||
|
init_options = {
|
||||||
|
formatter = "standard";
|
||||||
|
linters = { "standard" };
|
||||||
|
}
|
||||||
|
},
|
||||||
}, {__index = function() return default end})
|
}, {__index = function() return default end})
|
||||||
|
|
||||||
for _, language in ipairs {
|
for _, language in ipairs {
|
||||||
|
@ -35,8 +43,8 @@ for _, language in ipairs {
|
||||||
"cssls",
|
"cssls",
|
||||||
"html",
|
"html",
|
||||||
"lua_ls",
|
"lua_ls",
|
||||||
"solargraph",
|
|
||||||
"ruby_lsp",
|
"ruby_lsp",
|
||||||
|
"solargraph",
|
||||||
"standardrb",
|
"standardrb",
|
||||||
"svelte",
|
"svelte",
|
||||||
"tsserver",
|
"tsserver",
|
||||||
|
|
Loading…
Reference in a new issue