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/html.lua | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'lua/lang/html.lua') diff --git a/lua/lang/html.lua b/lua/lang/html.lua index 5f91becf..1c45cd05 100644 --- a/lua/lang/html.lua +++ b/lua/lang/html.lua @@ -1,7 +1,13 @@ local M = {} M.config = function() - O.lang.html = {} + O.lang.html = { + linters = { + "tidy", + -- https://docs.errata.ai/vale/scoping#html + "vale", + }, + } end M.format = function() @@ -10,8 +16,9 @@ M.format = function() end M.lint = function() - -- TODO: implement linters (if applicable) - return "No linters configured!" + require("lint").linters_by_ft = { + html = O.lang.html.linters, + } end M.lsp = function() -- cgit v1.2.3