refactor: restructure init.lua to use lazy plugin manager and add lsp configurations
This commit is contained in:
119 files changed
+2201
-18000
No files matched your search
@@ -0,0 +1,33 @@
|
||||
return {
|
||||
"mfussenegger/nvim-lint",
|
||||
dependencies = { "rshkarin/mason-nvim-lint" },
|
||||
event = { "BufReadPost", "BufNewFile" },
|
||||
config = function()
|
||||
require("lint").linters_by_ft = {
|
||||
javascript = { "eslint_d" },
|
||||
typescript = { "eslint_d" },
|
||||
javascriptreact = { "eslint_d" },
|
||||
typescriptreact = { "eslint_d" },
|
||||
dockerfile = { "hadolint" },
|
||||
markdown = { "write_good", "markdownlint" },
|
||||
text = { "write_good" },
|
||||
sh = { "shellcheck" },
|
||||
yaml = { "actionlint" },
|
||||
python = { "ruff" },
|
||||
}
|
||||
require("mason-nvim-lint").setup({
|
||||
ensure_installed = {
|
||||
"eslint_d",
|
||||
"hadolint",
|
||||
"write_good",
|
||||
"markdownlint",
|
||||
"shellcheck",
|
||||
"actionlint",
|
||||
"djlint",
|
||||
"ruff",
|
||||
"pylint",
|
||||
},
|
||||
automatic_installation = true,
|
||||
})
|
||||
end,
|
||||
}
|
||||
Reference in new issue
Block a user