summaryrefslogtreecommitdiff
path: root/lua/lang/html.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/lang/html.lua')
-rw-r--r--lua/lang/html.lua13
1 files changed, 10 insertions, 3 deletions
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()