starter/init.lua

29 lines
511 B
Lua
Raw Normal View History

2023-01-07 17:53:23 +08:00
-- bootstrap lazy.nvim, LazyVim and your plugins
2023-01-07 17:20:36 +08:00
require("config.lazy")
2024-06-07 03:50:02 +08:00
-- 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,
},
},
})