enc: add auto lint nvim-lint

This commit is contained in:
asep.komarudin 2024-07-04 20:52:02 +07:00
parent 19abed8ac0
commit e7c7785cc5
3 changed files with 173 additions and 135 deletions

37
lua/plugins/autolint.lua Normal file
View file

@ -0,0 +1,37 @@
local M = {}
local disable = pcode.disable_null_ls or false
if require("user.utils.cfgstatus").cheack() then
disable = true
end
if disable then
M = {
"pojokcodeid/auto-lint.nvim",
dependencies = {
"mfussenegger/nvim-lint",
},
event = "VeryLazy",
config = function()
require("auto-lint").setup({
map_lang = {
-- ["c++"] = "cpp",
-- ["c#"] = "cs",
},
map_name = {
-- ["actionlint"] = "actionlint",
-- ["ansible_lint"] = "ansible_lint",
},
add_new = {
-- ["typescriptreact"] = { "eslint_d" },
-- ["javascriptreact"] = { "eslint_d" },
},
ignore = {
-- ["php"] = { "tlint" },
},
ensure_installed = {
-- "eslint_d",
},
})
end,
}
end
return M