[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

@ -12,6 +12,7 @@ M.config = function()
args = {},
stdin = false,
},
linters = { "luacheck" },
}
end
@ -34,8 +35,9 @@ M.format = function()
end
M.lint = function()
-- TODO: implement linters (if applicable)
return "No linters configured!"
require("lint").linters_by_ft = {
lua = O.lang.lua.linters,
}
end
M.lsp = function()