Restructure and disable linters the proper way
This commit is contained in:
parent
6e17346720
commit
3daccea308
1 changed files with 46 additions and 51 deletions
|
@ -1,13 +1,9 @@
|
||||||
return {
|
return {
|
||||||
|
|
||||||
{ -- Linting
|
|
||||||
'mfussenegger/nvim-lint',
|
'mfussenegger/nvim-lint',
|
||||||
event = { 'BufReadPre', 'BufNewFile' },
|
event = { 'BufReadPre', 'BufNewFile' },
|
||||||
config = function()
|
config = function()
|
||||||
local lint = require 'lint'
|
local lint = require 'lint'
|
||||||
lint.linters_by_ft = {
|
lint.linters_by_ft = {}
|
||||||
markdown = { 'markdownlint' },
|
|
||||||
}
|
|
||||||
|
|
||||||
-- To allow other plugins to add linters to require('lint').linters_by_ft,
|
-- To allow other plugins to add linters to require('lint').linters_by_ft,
|
||||||
-- instead set linters_by_ft like this:
|
-- instead set linters_by_ft like this:
|
||||||
|
@ -35,7 +31,7 @@ return {
|
||||||
-- lint.linters_by_ft['inko'] = nil
|
-- lint.linters_by_ft['inko'] = nil
|
||||||
-- lint.linters_by_ft['janet'] = nil
|
-- lint.linters_by_ft['janet'] = nil
|
||||||
-- lint.linters_by_ft['json'] = 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['rst'] = nil
|
||||||
-- lint.linters_by_ft['ruby'] = nil
|
-- lint.linters_by_ft['ruby'] = nil
|
||||||
-- lint.linters_by_ft['terraform'] = nil
|
-- lint.linters_by_ft['terraform'] = nil
|
||||||
|
@ -51,5 +47,4 @@ return {
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
end,
|
end,
|
||||||
},
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue