dotfiles/.config/nvim/lua/plugins/lint.lua

15 lines
266 B
Lua

return {
"mfussenegger/nvim-lint",
config = function()
require("lint").linters_by_ft = {
ruby = { "rubocop", "standardrb" },
}
vim.api.nvim_create_autocmd({ "BufWritePost" }, {
callback = function()
require("lint").try_lint()
end,
})
end,
}