mirror of
https://github.com/LazyVim/starter.git
synced 2026-07-22 12:31:04 +00:00
Setup ruby LSP
This commit is contained in:
parent
b103d97918
commit
255d5c6e3a
1 changed files with 26 additions and 0 deletions
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…
Add table
Reference in a new issue