backup mason plugins
This commit is contained in:
@@ -1,2 +1,58 @@
|
|||||||
-- bootstrap lazy.nvim, LazyVim and your plugins
|
-- bootstrap lazy.nvim, LazyVim and your plugins
|
||||||
require("config.lazy")
|
require("config.lazy")
|
||||||
|
|
||||||
|
require("mason").setup()
|
||||||
|
|
||||||
|
local mason_registry = require("mason-registry")
|
||||||
|
|
||||||
|
local ensure_installed = {
|
||||||
|
"codespell",
|
||||||
|
"cspell",
|
||||||
|
"delve",
|
||||||
|
"dotenv-linter",
|
||||||
|
"gitleaks",
|
||||||
|
"glint",
|
||||||
|
"go-debug-adapter",
|
||||||
|
"goimports",
|
||||||
|
"goimports-reviser",
|
||||||
|
"golangci-lint",
|
||||||
|
"gopls",
|
||||||
|
"gotests",
|
||||||
|
"json-lsp",
|
||||||
|
"lua-language-server",
|
||||||
|
"luau-lsp",
|
||||||
|
"markdown-oxide",
|
||||||
|
"markdownlint",
|
||||||
|
"marksman",
|
||||||
|
"nginx-language-server",
|
||||||
|
"nilaway",
|
||||||
|
"postgrestools",
|
||||||
|
"prettier",
|
||||||
|
"prettierd",
|
||||||
|
"protolint",
|
||||||
|
"pylyzer",
|
||||||
|
"python-lsp-server",
|
||||||
|
"rubocop",
|
||||||
|
"ruby-lsp",
|
||||||
|
"rubyfmt",
|
||||||
|
"selene",
|
||||||
|
"shfmt",
|
||||||
|
"sql-formatter",
|
||||||
|
"sqlfluff",
|
||||||
|
"stylua",
|
||||||
|
"tflint",
|
||||||
|
"ts-standard",
|
||||||
|
"typos-lsp",
|
||||||
|
"vim-language-server",
|
||||||
|
"yaml-language-server",
|
||||||
|
"yamlfix",
|
||||||
|
"yamlfmt",
|
||||||
|
"yamllint",
|
||||||
|
}
|
||||||
|
|
||||||
|
for _, name in ipairs(ensure_installed) do
|
||||||
|
local ok, pkg = pcall(mason_registry.get_package, name)
|
||||||
|
if ok and not pkg:is_installed() then
|
||||||
|
pkg:install()
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user