feat: added mason configs for vue
This commit is contained in:
parent
bc7c1031c9
commit
fb307f1713
@ -20,7 +20,7 @@
|
||||
"guess-indent.nvim": { "branch": "main", "commit": "6c75506e71836f34fe5c5efa322dfce3e0494e7b" },
|
||||
"heirline.nvim": { "branch": "master", "commit": "0d797435e54645a5f98bad7ad6046aac1ef95c1e" },
|
||||
"indent-blankline.nvim": { "branch": "master", "commit": "65e20ab94a26d0e14acac5049b8641336819dfc7" },
|
||||
"lazy.nvim": { "branch": "main", "commit": "a6daaf68a2805ac9180b835f09de5ca5d5cf8993" },
|
||||
"lazy.nvim": { "branch": "main", "commit": "f918318d21956b0874a65ab35ce3d94d9057aabf" },
|
||||
"lspkind.nvim": { "branch": "master", "commit": "1735dd5a5054c1fb7feaf8e8658dbab925f4f0cf" },
|
||||
"mason-lspconfig.nvim": { "branch": "main", "commit": "9ae570e206360e47d30b4c35a4550c165f4ea7b7" },
|
||||
"mason-null-ls.nvim": { "branch": "main", "commit": "2b8433f76598397fcc97318d410e0c4f7a4bea6a" },
|
||||
|
||||
1
lua/plugins/mason/.gitignore
vendored
Normal file
1
lua/plugins/mason/.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
init.lua
|
||||
18
lua/plugins/mason/vue.lua
Normal file
18
lua/plugins/mason/vue.lua
Normal 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
|
||||
@ -1,6 +1,4 @@
|
||||
if true then return {} end -- WARN: REMOVE THIS LINE TO ACTIVATE THIS FILE
|
||||
|
||||
-- Customize Mason plugins
|
||||
local vue = require "plugins.mason.vue"
|
||||
|
||||
---@type LazySpec
|
||||
return {
|
||||
@ -9,10 +7,7 @@ return {
|
||||
"williamboman/mason-lspconfig.nvim",
|
||||
-- overrides `require("mason-lspconfig").setup(...)`
|
||||
opts = {
|
||||
ensure_installed = {
|
||||
"lua_ls",
|
||||
-- add more arguments for adding more language servers
|
||||
},
|
||||
ensure_installed = vue.lspconfig,
|
||||
},
|
||||
},
|
||||
-- use mason-null-ls to configure Formatters/Linter installation for null-ls sources
|
||||
@ -20,10 +15,7 @@ return {
|
||||
"jay-babu/mason-null-ls.nvim",
|
||||
-- overrides `require("mason-null-ls").setup(...)`
|
||||
opts = {
|
||||
ensure_installed = {
|
||||
"stylua",
|
||||
-- add more arguments for adding more null-ls sources
|
||||
},
|
||||
ensure_installed = vue.null_ls,
|
||||
},
|
||||
},
|
||||
{
|
||||
@ -31,7 +23,6 @@ return {
|
||||
-- overrides `require("mason-nvim-dap").setup(...)`
|
||||
opts = {
|
||||
ensure_installed = {
|
||||
"python",
|
||||
-- add more arguments for adding more debuggers
|
||||
},
|
||||
},
|
||||
Loading…
Reference in New Issue
Block a user