feat: enhance editor and language support with new plugins and configurations
This commit is contained in:
7 files changed
+315
-151
No files matched your search
+23
-11
@@ -2,18 +2,29 @@ return {
|
||||
"mfussenegger/nvim-lint",
|
||||
dependencies = { "rshkarin/mason-nvim-lint" },
|
||||
event = { "BufReadPost", "BufNewFile" },
|
||||
keys = {
|
||||
{
|
||||
"<leader>L",
|
||||
mode = { "n" },
|
||||
function()
|
||||
require("lint").try_lint()
|
||||
end,
|
||||
desc = "Trigger linting for current file",
|
||||
},
|
||||
},
|
||||
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" },
|
||||
["*"] = { "codespell" },
|
||||
["javascript"] = { "eslint_d", "cspell" },
|
||||
["typescript"] = { "eslint_d", "cspell" },
|
||||
["javascriptreact"] = { "eslint_d", "cspell" },
|
||||
["typescriptreact"] = { "eslint_d", "cspell" },
|
||||
["dockerfile"] = { "hadolint" },
|
||||
["markdown"] = { "write_good", "markdownlint" },
|
||||
["text"] = { "write_good" },
|
||||
["sh"] = { "shellcheck" },
|
||||
["yaml"] = { "actionlint" },
|
||||
["python"] = { "ruff" },
|
||||
}
|
||||
require("mason-nvim-lint").setup({
|
||||
ensure_installed = {
|
||||
@@ -25,7 +36,8 @@ return {
|
||||
"actionlint",
|
||||
"djlint",
|
||||
"ruff",
|
||||
"pylint",
|
||||
"codespell",
|
||||
"cspell",
|
||||
},
|
||||
automatic_installation = true,
|
||||
})
|
||||
|
||||
Reference in new issue
Block a user