added funtioning mason.lua back

This commit is contained in:
liph
2026-02-06 10:44:38 +01:00
parent 7b590ef2ec
commit ab69cc08f2
5 changed files with 159 additions and 30 deletions

View File

@@ -30,6 +30,7 @@
"lualine.nvim": { "branch": "master", "commit": "47f91c416daef12db467145e16bed5bbfe00add8" },
"luvit-meta": { "branch": "main", "commit": "0ea4ff636c5bb559ffa78108561d0976f4de9682" },
"mason-lspconfig.nvim": { "branch": "main", "commit": "ae609525ddf01c153c39305730b1791800ffe4fe" },
"mason-tool-installer.nvim": { "branch": "main", "commit": "443f1ef8b5e6bf47045cb2217b6f748a223cf7dc" },
"mason.nvim": { "branch": "main", "commit": "44d1e90e1f66e077268191e3ee9d2ac97cc18e65" },
"neo-tree.nvim": { "branch": "v3.x", "commit": "f3df514fff2bdd4318127c40470984137f87b62e" },
"neogit": { "branch": "master", "commit": "73870229977fdd8747025820e15e98cfde787b9c" },

View File

@@ -1,30 +0,0 @@
-- plugins/mason.lua
return {
{
"williamboman/mason.nvim",
lazy = false,
config = function()
require("mason").setup()
end,
},
{
"williamboman/mason-lspconfig.nvim",
lazy = false,
opts = {
auto_install = true,
ensure_installed = {
"lua_ls",
"pyright",
"bashls",
"ts_ls",
"solargraph",
"html",
"texlab",
"ltex",
"dockerls",
"yamlls",
"taplo",
},
},
},
}

View File

@@ -0,0 +1,59 @@
-- plugins/mason.lua
return {
{
"williamboman/mason.nvim",
lazy = false,
config = function()
require("mason").setup()
end,
},
{
"williamboman/mason-lspconfig.nvim",
lazy = false,
opts = {
auto_install = true,
ensure_installed = {
"lua_ls",
"pyright",
"bashls",
"ts_ls",
"solargraph",
"html",
"texlab",
"ltex",
"dockerls",
"yamlls",
"taplo",
},
},
},
{
"WhoIsSethDaniel/mason-tool-installer.nvim",
lazy = false,
dependencies = { "williamboman/mason.nvim" },
opts = {
ensure_installed = {
-- linters
"jsonlint",
"yamllint",
"shellcheck",
"stylelint",
"htmlhint",
"hadolint",
"eslint_d",
"rubocop",
"markdownlint",
-- formatters (optional)
"black",
"stylua",
"shfmt",
"prettier",
},
auto_update = true,
run_on_start = true,
},
config = function(_, opts)
require("mason-tool-installer").setup(opts)
end,
},
}