mirror of
https://github.com/LunarVim/LunarVim.git
synced 2025-08-02 17:14:56 +02:00
[Feature] add linter support (#982)
This commit is contained in:
parent
fe48ed9ef9
commit
836286798e
15 changed files with 107 additions and 84 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue