aboutsummaryrefslogtreecommitdiff
path: root/lua/gabrielgio/linter.lua
blob: 427b236655d85e88a5f7cae86df3d25ca644a4bf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
local lint = require("lint")

lint.linters_by_ft = {
	go = { "golangcilint" },
	lua = { "luacheck" },
	fish = { "fish" },
}

vim.api.nvim_create_autocmd({ "BufWritePost" }, {
	callback = function()
		lint.try_lint()
	end,
})