mirror of
https://github.com/pojokcodeid/nvim-lazy.git
synced 2025-06-21 16:39:04 +02:00
enc: migrate to auto-lint and auto-conform
This commit is contained in:
parent
eace6b6674
commit
ff62c20795
11 changed files with 38 additions and 55 deletions
|
@ -10,27 +10,15 @@ if disable then
|
|||
"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",
|
||||
},
|
||||
})
|
||||
opts = function(_, opts)
|
||||
opts.map_lang = opts.map_lang or {}
|
||||
opts.map_name = opts.map_name or {}
|
||||
opts.add_new = opts.add_new or {}
|
||||
opts.ignore = opts.ignore or {}
|
||||
opts.ensure_installed = opts.ensure_installed or {}
|
||||
end,
|
||||
config = function(_, opts)
|
||||
require("auto-lint").setup(opts)
|
||||
end,
|
||||
}
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue