mirror of
https://github.com/pojokcodeid/nvim-lazy.git
synced 2025-06-21 16:39:04 +02:00
enc: add auto lint nvim-lint
This commit is contained in:
parent
19abed8ac0
commit
e7c7785cc5
3 changed files with 173 additions and 135 deletions
37
lua/plugins/autolint.lua
Normal file
37
lua/plugins/autolint.lua
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue