All checks were successful
/ check (push) Successful in 1m12s
Following commit 724753327
, this removes all global formatters and
linters so I can move them into project-specific flake.nix and .nvim.lua
files.
12 lines
286 B
Lua
12 lines
286 B
Lua
local lint = require "lint"
|
|
|
|
lint.linters_by_ft = {};
|
|
|
|
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,
|
|
})
|