dotfiles/.config/nvim/lua/plugins/extras/linting/cspell.lua
2024-01-06 01:20:09 +01:00

15 lines
305 B
Lua

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