Files
configs/neovim/init.lua
2025-07-15 18:14:35 +01:00

59 lines
1020 B
Lua

-- bootstrap lazy.nvim, LazyVim and your plugins
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