feat: added mason configs for vue

This commit is contained in:
root
2024-07-11 06:09:00 +00:00
parent bc7c1031c9
commit fb307f1713
4 changed files with 23 additions and 13 deletions
+1
View File
@@ -0,0 +1 @@
init.lua
+18
View File
@@ -0,0 +1,18 @@
-- config.lua
local config = {
lspconfig = {
"eslint",
"stylelint_lsp",
"tailwindcss",
"tsserver",
"volar@1.8.27",
"tsserver",
},
null_ls = {
"stylelint",
"prettier",
},
}
return config
+30
View File
@@ -0,0 +1,30 @@
local vue = require "plugins.mason.vue"
---@type LazySpec
return {
-- use mason-lspconfig to configure LSP installations
{
"williamboman/mason-lspconfig.nvim",
-- overrides `require("mason-lspconfig").setup(...)`
opts = {
ensure_installed = vue.lspconfig,
},
},
-- use mason-null-ls to configure Formatters/Linter installation for null-ls sources
{
"jay-babu/mason-null-ls.nvim",
-- overrides `require("mason-null-ls").setup(...)`
opts = {
ensure_installed = vue.null_ls,
},
},
{
"jay-babu/mason-nvim-dap.nvim",
-- overrides `require("mason-nvim-dap").setup(...)`
opts = {
ensure_installed = {
-- add more arguments for adding more debuggers
},
},
},
}