summaryrefslogtreecommitdiff
path: root/lua/lang/vim.lua
diff options
context:
space:
mode:
authorLuc Sinet <[email protected]>2021-07-17 00:30:38 +0200
committerGitHub <[email protected]>2021-07-16 18:30:38 -0400
commit836286798e959fbaa43bd4502561cf85aea537c9 (patch)
tree821f5c459fb056c619aab9f34d802be8776a1cac /lua/lang/vim.lua
parentfe48ed9ef9de8da8b9fbf7f82f8e0af1758581a4 (diff)
[Feature] add linter support (#982)
Diffstat (limited to 'lua/lang/vim.lua')
-rw-r--r--lua/lang/vim.lua9
1 files changed, 6 insertions, 3 deletions
diff --git a/lua/lang/vim.lua b/lua/lang/vim.lua
index 4c29a84a..4386757e 100644
--- a/lua/lang/vim.lua
+++ b/lua/lang/vim.lua
@@ -1,7 +1,9 @@
local M = {}
M.config = function()
- O.lang.vim = {}
+ O.lang.vim = {
+ linters = { "vint" },
+ }
end
M.format = function()
@@ -10,8 +12,9 @@ M.format = function()
end
M.lint = function()
- -- TODO: implement linters (if applicable)
- return "No linters configured!"
+ require("lint").linters_by_ft = {
+ vim = O.lang.vim.linters,
+ }
end
M.lsp = function()