diff options
author | Luc Sinet <[email protected]> | 2021-07-17 00:30:38 +0200 |
---|---|---|
committer | GitHub <[email protected]> | 2021-07-16 18:30:38 -0400 |
commit | 836286798e959fbaa43bd4502561cf85aea537c9 (patch) | |
tree | 821f5c459fb056c619aab9f34d802be8776a1cac /lua/lang/tex.lua | |
parent | fe48ed9ef9de8da8b9fbf7f82f8e0af1758581a4 (diff) |
[Feature] add linter support (#982)
Diffstat (limited to 'lua/lang/tex.lua')
-rw-r--r-- | lua/lang/tex.lua | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lua/lang/tex.lua b/lua/lang/tex.lua index 7ebc84a0..7fdc8757 100644 --- a/lua/lang/tex.lua +++ b/lua/lang/tex.lua @@ -31,6 +31,7 @@ M.config = function() signs = true, underline = true, }, + linters = { "chktex" }, auto_save = false, ignore_errors = {}, } @@ -42,8 +43,9 @@ M.format = function() end M.lint = function() - -- TODO: implement linters (if applicable) - return "No linters configured!" + require("lint").linters_by_ft = { + tex = O.lang.latex.linters, + } end M.lsp = function() |