20 lines
621 B
Lua
20 lines
621 B
Lua
return {
|
|
-- Vale is a prose linter / style checker.
|
|
-- Make sure the `vale` binary is on your $PATH (e.g. in ~/.local/bin).
|
|
{
|
|
"mfussenegger/nvim-lint",
|
|
optional = true,
|
|
opts = function(_, opts)
|
|
opts.linters_by_ft = opts.linters_by_ft or {}
|
|
|
|
-- Run Vale on LaTeX, Markdown, and plain text files.
|
|
for _, ft in ipairs({ "tex", "plaintex", "markdown", "text" }) do
|
|
opts.linters_by_ft[ft] = opts.linters_by_ft[ft] or {}
|
|
if not vim.tbl_contains(opts.linters_by_ft[ft], "vale") then
|
|
table.insert(opts.linters_by_ft[ft], "vale")
|
|
end
|
|
end
|
|
end,
|
|
},
|
|
}
|