[Feature] add linter support (#982)

This commit is contained in:
Luc Sinet 2021-07-17 00:30:38 +02:00 committed by GitHub
parent fe48ed9ef9
commit 836286798e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
15 changed files with 107 additions and 84 deletions

View file

@ -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()