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/go.lua | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'lua/lang/go.lua') diff --git a/lua/lang/go.lua b/lua/lang/go.lua index 7997a911..4174629a 100644 --- a/lua/lang/go.lua +++ b/lua/lang/go.lua @@ -6,6 +6,10 @@ M.config = function() exe = "gofmt", args = {}, }, + linters = { + "golangcilint", + "revive", + }, } end @@ -27,8 +31,9 @@ M.format = function() end M.lint = function() - -- TODO: implement linters (if applicable) - return "No linters configured!" + require("lint").linters_by_ft = { + go = O.lang.go.linters, + } end M.lsp = function() -- cgit v1.2.3