mirror of
https://github.com/pojokcodeid/nvim-lazy.git
synced 2025-06-21 16:39:04 +02:00
add: nvimlint remark mapping
This commit is contained in:
parent
77b40e7caf
commit
d93425cec0
1 changed files with 3 additions and 3 deletions
|
@ -13,7 +13,7 @@ return {
|
|||
["c#"] = "cs",
|
||||
}
|
||||
|
||||
-- add dif conform vs mason
|
||||
-- add dif nvim-lint vs mason
|
||||
local name_map = {
|
||||
["actionlint"] = "actionlint",
|
||||
["ansible_lint"] = "ansible_lint",
|
||||
|
@ -70,9 +70,9 @@ return {
|
|||
|
||||
for _, pkg in pairs(mason_reg.get_installed_packages()) do
|
||||
for _, type in pairs(pkg.spec.categories) do
|
||||
-- only act upon a formatter
|
||||
-- only act upon a Linter
|
||||
if type == "Linter" then
|
||||
-- finally add the formatter to it's compatible filetype(s)
|
||||
-- finally add the linter to it's compatible filetype(s)
|
||||
for _, ft in pairs(pkg.spec.languages) do
|
||||
local ftl = string.lower(ft)
|
||||
local ready = mason_reg.get_package(pkg.spec.name):is_installed()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue