diff --git a/.config/nvim/lua/plugins/lint.lua b/.config/nvim/lua/plugins/lint.lua index c7d513a..e0ad35d 100644 --- a/.config/nvim/lua/plugins/lint.lua +++ b/.config/nvim/lua/plugins/lint.lua @@ -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, }