Personal LazyVim config: vimtex, LTeX, Vale, prose settings

This commit is contained in:
YannAhlgrim
2026-06-27 19:07:03 +02:00
parent 803bc181d7
commit 8ba8365eb1
15 changed files with 507 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
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,
},
}