mirror of
https://github.com/LazyVim/starter.git
synced 2026-07-22 20:41:04 +00:00
41 lines
1.2 KiB
Lua
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
|
|
},
|
|
}
|