From 05b54919bc1e308e6addd241fd73289851fd26f9 Mon Sep 17 00:00:00 2001 From: DarkWiiPlayer Date: Tue, 1 Oct 2024 11:22:40 +0200 Subject: [PATCH] Update nvim lsp config for ruby-lsp --- vim/plugin/lsp.lua | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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",