mirror of https://github.com/LazyVim/starter
Setup ruby LSP
parent
91dd2a1c6d
commit
ccc2c83bae
26
init.lua
26
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,
|
||||
},
|
||||
},
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue