starter/lua/plugins/lsp.lua
2025-09-23 11:05:03 -04:00

41 lines
1.2 KiB
Lua

return {
{
"neovim/nvim-lspconfig",
opts = {
inlay_hints = { enabled = false },
servers = {
denols = {
root_dir = require("lspconfig").util.root_pattern("deno.json", "deno.jsonc"),
single_file_support = false,
},
rubocop = { enabled = false },
oxlint = {
root_dir = require("lspconfig").util.root_pattern(".oxlintrc.json"),
},
ruby_lsp = {
mason = false,
setup = function()
local cmd = vim.fn.executable("ruby-lsp") == 1 and { "ruby-lsp" } or { "bundle", "exec", "ruby-lsp" }
require("lspconfig").ruby_lsp.setup({ cmd = cmd, mason = false })
return true -- prevent default setup
end,
},
jinja_lsp = {
filetypes = { "jinja", "html" },
},
vtsls = {
preferences = {
-- importModuleSpecifier = "relative",
importModuleSpecifier = "non-relative",
importModuleSpecifierEnding = "minimal",
},
},
},
},
},
{
"b0o/SchemaStore.nvim",
lazy = true,
version = false, -- last release is way too old
},
}