From 836286798e959fbaa43bd4502561cf85aea537c9 Mon Sep 17 00:00:00 2001 From: Luc Sinet Date: Sat, 17 Jul 2021 00:30:38 +0200 Subject: [Feature] add linter support (#982) --- lua/lang/ruby.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'lua/lang/ruby.lua') diff --git a/lua/lang/ruby.lua b/lua/lang/ruby.lua index f306025b..20618951 100644 --- a/lua/lang/ruby.lua +++ b/lua/lang/ruby.lua @@ -12,6 +12,7 @@ M.config = function() exe = "rufo", args = { "-x" }, }, + linters = { "ruby" }, } end @@ -33,8 +34,9 @@ M.format = function() end M.lint = function() - -- TODO: implement linters (if applicable) - return "No linters configured!" + require("lint").linters_by_ft = { + ruby = O.lang.ruby.linters, + } end M.lsp = function() -- cgit v1.2.3