diff --git a/vim/plugin/lsp.lua b/vim/plugin/lsp.lua index d781a56..30200c4 100644 --- a/vim/plugin/lsp.lua +++ b/vim/plugin/lsp.lua @@ -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",