Configure nvim-lint

This commit is contained in:
Ryan Cavicchioni 2024-10-13 18:52:29 -05:00
parent 24c9878ee7
commit f47198c20c
Signed by: ryanc
GPG Key ID: 877EEDAF9245103D

View File

@ -1,3 +1,14 @@
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,
}