1local lint = require("lint")
2
3lint.linters_by_ft = {
4 go = { "golangcilint" },
5 lua = { "luacheck" },
6 javascript = { "prettier" },
7 fish = { "fish" },
8}
9
10vim.api.nvim_create_autocmd({ "BufWritePost" }, {
11 callback = function()
12 lint.try_lint()
13 end,
14})