commit 354c158d084a74caeed579e0825b52f23c4ec835
parent 75bee970980e29b9825e662f6cc63df660837bc0
Author: MichaĆ M. Sapka <michal@sapka.me>
Date: Fri, 2 Sep 2022 22:35:24 +0200
feat(vim): add rubcop diagnostics
Diffstat:
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/nvim/.config/nvim/lua/user/lsp/null-ls.lua b/nvim/.config/nvim/lua/user/lsp/null-ls.lua
@@ -14,6 +14,10 @@ null_ls.setup({
formatting.prettier.with({ extra_args = { "--no-semi", "--single-quote", "--jsx-single-quote" } }),
formatting.black.with({ extra_args = { "--fast" } }),
formatting.stylua,
+ diagnostics.rubocop.with({
+ command = "bundle",
+ args = vim.list_extend({ "exec", "rubocop" }, require("null-ls").builtins.diagnostics.rubocop._opts.args),
+ }),
-- diagnostics.flake8
},
})