mirror of
https://github.com/LunarVim/LunarVim.git
synced 2025-07-21 19:24:25 +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
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue