♻️ refactor(lint): simplify linter configuration by removing custom args

This commit is contained in:
sankalp committed 2025-07-25 14:56:56 +05:45
1 parent abaaff05ea
commit ce21f2821c
1 file changed
-12
-12
View File
@@ -14,18 +14,6 @@ lint.linters_by_ft = {
yaml = { 'actionlint' },
}
table.insert(
require('lint').linters.codespell.args,
1,
'--config=' .. vim.fs.joinpath(require('dotfyls.files').config_dir, 'codespell', '.codespellrc')
)
table.insert(require('lint').linters.vala_lint.args, 1, '--config=vala-lint.conf')
table.insert(
require('lint').linters.yamllint.args,
1,
'--config-file=' .. vim.fs.joinpath(require('dotfyls.files').config_dir, 'yamllint', 'config.yaml')
)
local function lint(bufnr)
local linters =
vim.list_extend({ 'codespell', 'editorconfig-checker' }, require('lint')._resolve_linter_by_ft(vim.bo.filetype))