diff --git a/.config/nvim/lua/plugins/nvim-lint.lua b/.config/nvim/lua/plugins/nvim-lint.lua new file mode 100644 index 00000000..46e1b47a --- /dev/null +++ b/.config/nvim/lua/plugins/nvim-lint.lua @@ -0,0 +1,15 @@ +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, + }, + }, + }, +}