feat: added mason configs for vue
This commit is contained in:
@@ -0,0 +1 @@
|
||||
init.lua
|
||||
@@ -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
|
||||
@@ -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
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user