dotfiles/.config/nvim/lua/plugins/nvim-lint.lua

15 lines
299 B
Lua

return {
"mfussenegger/nvim-lint",
opts = {
linters_by_ft = {
["*"] = { "cspell" },
},
linters = {
cspell = {
condition = function(ctx)
return vim.fs.find({ "cspell.json" }, { path = ctx.filename, upward = true })[1]
end,
},
},
},
}