From ab69cc08f23bd293c97aa91d725716ada97fd164 Mon Sep 17 00:00:00 2001 From: liph Date: Fri, 6 Feb 2026 10:44:38 +0100 Subject: [PATCH] added funtioning mason.lua back --- nvim/.config/nvim/lazy-lock.json | 1 + .../nvim/lua/plugins.inactive/mason.lua | 30 ------ nvim/.config/nvim/lua/plugins/mason.lua | 59 ++++++++++++ package-lock.json | 94 +++++++++++++++++++ package.json | 5 + 5 files changed, 159 insertions(+), 30 deletions(-) delete mode 100644 nvim/.config/nvim/lua/plugins.inactive/mason.lua create mode 100644 nvim/.config/nvim/lua/plugins/mason.lua create mode 100644 package-lock.json create mode 100644 package.json diff --git a/nvim/.config/nvim/lazy-lock.json b/nvim/.config/nvim/lazy-lock.json index 36a7e91..42c63b7 100644 --- a/nvim/.config/nvim/lazy-lock.json +++ b/nvim/.config/nvim/lazy-lock.json @@ -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" }, diff --git a/nvim/.config/nvim/lua/plugins.inactive/mason.lua b/nvim/.config/nvim/lua/plugins.inactive/mason.lua deleted file mode 100644 index dbaa144..0000000 --- a/nvim/.config/nvim/lua/plugins.inactive/mason.lua +++ /dev/null @@ -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", - }, - }, - }, -} diff --git a/nvim/.config/nvim/lua/plugins/mason.lua b/nvim/.config/nvim/lua/plugins/mason.lua new file mode 100644 index 0000000..4462591 --- /dev/null +++ b/nvim/.config/nvim/lua/plugins/mason.lua @@ -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, + }, +} diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 0000000..201003e --- /dev/null +++ b/package-lock.json @@ -0,0 +1,94 @@ +{ + "name": "dotfiles", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "dependencies": { + "jsonlint": "^1.6.3" + } + }, + "node_modules/ansi-styles": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-1.0.0.tgz", + "integrity": "sha512-3iF4FIKdxaVYT3JqQuY3Wat/T2t7TRbbQ94Fu50ZUCbLy4TFbTzr90NOHQodQkNqmeEGCw8WbeP78WNi6SKYUA==", + "license": "MIT", + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/chalk": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-0.4.0.tgz", + "integrity": "sha512-sQfYDlfv2DGVtjdoQqxS0cEZDroyG8h6TamA6rvxwlrU5BaSLDx9xhatBYl2pxZ7gmpNaPFVwBtdGdu5rQ+tYQ==", + "license": "MIT", + "dependencies": { + "ansi-styles": "~1.0.0", + "has-color": "~0.1.0", + "strip-ansi": "~0.1.0" + }, + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/has-color": { + "version": "0.1.7", + "resolved": "https://registry.npmjs.org/has-color/-/has-color-0.1.7.tgz", + "integrity": "sha512-kaNz5OTAYYmt646Hkqw50/qyxP2vFnTVu5AQ1Zmk22Kk5+4Qx6BpO8+u7IKsML5fOsFk0ZT0AcCJNYwcvaLBvw==", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/jsonlint": { + "version": "1.6.3", + "resolved": "https://registry.npmjs.org/jsonlint/-/jsonlint-1.6.3.tgz", + "integrity": "sha512-jMVTMzP+7gU/IyC6hvKyWpUU8tmTkK5b3BPNuMI9U8Sit+YAWLlZwB6Y6YrdCxfg2kNz05p3XY3Bmm4m26Nv3A==", + "dependencies": { + "JSV": "^4.0.x", + "nomnom": "^1.5.x" + }, + "bin": { + "jsonlint": "lib/cli.js" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/JSV": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/JSV/-/JSV-4.0.2.tgz", + "integrity": "sha512-ZJ6wx9xaKJ3yFUhq5/sk82PJMuUyLk277I8mQeyDgCTjGdjWJIvPfaU5LIXaMuaN2UO1X3kZH4+lgphublZUHw==", + "engines": { + "node": "*" + } + }, + "node_modules/nomnom": { + "version": "1.8.1", + "resolved": "https://registry.npmjs.org/nomnom/-/nomnom-1.8.1.tgz", + "integrity": "sha512-5s0JxqhDx9/rksG2BTMVN1enjWSvPidpoSgViZU4ZXULyTe+7jxcCRLB6f42Z0l1xYJpleCBtSyY6Lwg3uu5CQ==", + "deprecated": "Package no longer supported. Contact support@npmjs.com for more info.", + "dependencies": { + "chalk": "~0.4.0", + "underscore": "~1.6.0" + } + }, + "node_modules/strip-ansi": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-0.1.1.tgz", + "integrity": "sha512-behete+3uqxecWlDAm5lmskaSaISA+ThQ4oNNBDTBJt0x2ppR6IPqfZNuj6BLaLJ/Sji4TPZlcRyOis8wXQTLg==", + "license": "MIT", + "bin": { + "strip-ansi": "cli.js" + }, + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/underscore": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/underscore/-/underscore-1.6.0.tgz", + "integrity": "sha512-z4o1fvKUojIWh9XuaVLUDdf86RQiq13AC1dmHbTpoyuu+bquHms76v16CjycCbec87J7z0k//SiQVk0sMdFmpQ==" + } + } +} diff --git a/package.json b/package.json new file mode 100644 index 0000000..18b0682 --- /dev/null +++ b/package.json @@ -0,0 +1,5 @@ +{ + "dependencies": { + "jsonlint": "^1.6.3" + } +}