From 47688aa2b0883df67b9e919ce18dd3a8c48b2914 Mon Sep 17 00:00:00 2001 From: Ade Attwood Date: Tue, 21 Nov 2023 07:40:51 +0000 Subject: [PATCH] chore(vim): add ruby linters --- site-modules/core/files/vim/plugin/lint.lua | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/site-modules/core/files/vim/plugin/lint.lua b/site-modules/core/files/vim/plugin/lint.lua index d7fc740..7582633 100644 --- a/site-modules/core/files/vim/plugin/lint.lua +++ b/site-modules/core/files/vim/plugin/lint.lua @@ -84,6 +84,14 @@ if vim.fn.executable('stylelint') == 1 then lint.linters_by_ft.scss = { "stylelint" } end +if vim.fn.executable('rubocop') == 1 then + lint.linters_by_ft.ruby = { "rubocop" } +end + +if vim.fn.executable('erb_lint') == 1 then + lint.linters_by_ft.eruby = { "erb_lint" } +end + local file_types_map = { [ "" ] = false, qf = false, ivy = false } -- Lint code with nvim-lint on save. This will lint all filetypes with cspell