Setup ruby LSP

pull/70/head
Marcelo Jacobus 2024-06-06 16:50:02 -03:00
parent 91dd2a1c6d
commit ccc2c83bae
1 changed files with 26 additions and 0 deletions

View File

@ -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,
},
},
})