Files
dotfiles/env/.config/nvim/after/plugin/lint.lua
iceyrazor b38cd5c376 - repo name change and readme change
- removed markdownlint config args as it is no longer a arg. thanks markdownlint-cli2. love changing my workflow :>
    - play pause bind for i3
2025-09-14 21:42:00 -05:00

16 lines
361 B
Lua

local ok, lint = pcall(require, 'lint')
if ok then
lint.linters_by_ft = {
markdown = { "markdownlint" },
}
local lint_augroup = vim.api.nvim_create_augroup("lint", { clear = true })
vim.api.nvim_create_autocmd({ "BufEnter", "BufWritePost", "InsertLeave" }, {
group = lint_augroup,
callback = function()
lint.try_lint()
end,
})
end