Restructure and disable linters the proper way

This commit is contained in:
Imbus 2024-08-10 05:49:17 +02:00
parent 6e17346720
commit 3daccea308

View file

@ -1,13 +1,9 @@
return {
{ -- Linting
'mfussenegger/nvim-lint',
event = { 'BufReadPre', 'BufNewFile' },
config = function()
local lint = require 'lint'
lint.linters_by_ft = {
markdown = { 'markdownlint' },
}
lint.linters_by_ft = {}
-- To allow other plugins to add linters to require('lint').linters_by_ft,
-- instead set linters_by_ft like this:
@ -35,7 +31,7 @@ return {
-- lint.linters_by_ft['inko'] = nil
-- lint.linters_by_ft['janet'] = nil
-- lint.linters_by_ft['json'] = nil
lint.linters_by_ft['markdown'] = nil
-- lint.linters_by_ft['markdown'] = nil
-- lint.linters_by_ft['rst'] = nil
-- lint.linters_by_ft['ruby'] = nil
-- lint.linters_by_ft['terraform'] = nil
@ -51,5 +47,4 @@ return {
end,
})
end,
},
}