39 lines
913 B
Lua
39 lines
913 B
Lua
return {
|
|
{ import = "lazyvim.plugins.extras.lang.vue" },
|
|
{
|
|
"neovim/nvim-lspconfig",
|
|
opts = {
|
|
servers = {
|
|
volar = {
|
|
},
|
|
handlers = {
|
|
["textDocument/publishDiagnostics"] = function(err, result, ctx, config)
|
|
require("ts-error-translator").translate_diagnostics(err, result, ctx, config)
|
|
vim.lsp.diagnostic.on_publish_diagnostics(err, result, ctx, config)
|
|
end,
|
|
},
|
|
},
|
|
},
|
|
},
|
|
},
|
|
{
|
|
"dmmulroy/ts-error-translator.nvim",
|
|
opts = {},
|
|
},
|
|
{
|
|
"williamboman/mason.nvim",
|
|
opts = function(_, opts)
|
|
opts.ensure_installed = opts.ensure_installed or {}
|
|
vim.list_extend(opts.ensure_installed, { "vue-language-server" })
|
|
end,
|
|
},
|
|
{
|
|
"luckasRanarison/nvim-devdocs",
|
|
optional = true,
|
|
opts = {
|
|
ensure_installed = {
|
|
"vue-3",
|
|
},
|
|
},
|
|
},
|
|
}
|