diff --git a/init.lua b/init.lua index 2514f9e..7aeb401 100644 --- a/init.lua +++ b/init.lua @@ -1,2 +1,28 @@ -- bootstrap lazy.nvim, LazyVim and your plugins require("config.lazy") + +-- init.lua +local lspconfig = require("lspconfig") + +-- Setup Ruby Language Server +lspconfig.ruby_ls.setup({ + cmd = { "ruby-lsp" }, + filetypes = { "ruby" }, + settings = { + ruby = { + diagnostics = true, + completion = true, + }, + }, +}) + +-- Setup Solargraph +lspconfig.solargraph.setup({ + cmd = { "solargraph", "stdio" }, + filetypes = { "ruby" }, + settings = { + solargraph = { + diagnostics = true, + }, + }, +})