chore(vim): add ruby linters
This commit is contained in:
parent
ca4f0019a8
commit
47688aa2b0
1 changed files with 8 additions and 0 deletions
|
|
@ -84,6 +84,14 @@ if vim.fn.executable('stylelint') == 1 then
|
||||||
lint.linters_by_ft.scss = { "stylelint" }
|
lint.linters_by_ft.scss = { "stylelint" }
|
||||||
end
|
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 }
|
local file_types_map = { [ "" ] = false, qf = false, ivy = false }
|
||||||
|
|
||||||
-- Lint code with nvim-lint on save. This will lint all filetypes with cspell
|
-- Lint code with nvim-lint on save. This will lint all filetypes with cspell
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue