From 0bd3ebac67abc2b6868e114d60ff1de6f3028c01 Mon Sep 17 00:00:00 2001 From: Leonardo Mora Date: Mon, 8 Jul 2024 12:23:04 -0600 Subject: [PATCH] fix(nvim-lint): add/correct some linters Squashed commit of the following: commit 5d6c844978b0b7a8acfc607cbfdab3dfb63d8392 Author: Leonardo Mora Date: Mon Jul 8 12:09:01 2024 -0600 feat(nvim-lint): add snyk and htmlhint See: https://github.com/rshkarin/mason-nvim-lint/issues/8 commit 984d655b220a3b235b81fcbcc6c3eb0c3d9a0e0c Author: Leonardo Mora Date: Mon Jul 8 11:57:02 2024 -0600 fix(nvim-lint): correct ansible-lint mapping See: https://github.com/rshkarin/mason-nvim-lint/pull/9 commit 806b42fa650f97a8bac445bd727552261dee81ec Author: Leonardo Mora Date: Mon Jul 8 11:55:03 2024 -0600 feat(nvim-lint): add checkmake Linter for Makefiles. See: https://github.com/rshkarin/mason-nvim-lint/pull/10 commit a376b63f49fd02f3502b006108fc373b1efb5611 Author: Leonardo Mora Date: Sun Jul 7 19:41:15 2024 -0600 refactor(formatters): better name --- lua/nvchad/mason/init.lua | 4 ++-- lua/nvchad/mason/names.lua | 5 ++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/lua/nvchad/mason/init.lua b/lua/nvchad/mason/init.lua index 6f00e644..5d7e913f 100644 --- a/lua/nvchad/mason/init.lua +++ b/lua/nvchad/mason/init.lua @@ -12,11 +12,11 @@ local get_pkgs = function(data) if conform_exists then local formatters = conform.list_all_formatters() - local formatters_names = vim.tbl_map(function(formatter) + local formatter_names = vim.tbl_map(function(formatter) return formatter.name end, formatters) - tools = vim.list_extend(tools, formatters_names) + tools = vim.list_extend(tools, formatter_names) end local lint_exists, lint = pcall(require, "lint") diff --git a/lua/nvchad/mason/names.lua b/lua/nvchad/mason/names.lua index 885b8324..cd5c8d3f 100644 --- a/lua/nvchad/mason/names.lua +++ b/lua/nvchad/mason/names.lua @@ -332,7 +332,7 @@ return { -- nvim-lint actionlint = "actionlint", - ansible_lint = "ansible_lint", + ansible_lint = "ansible-lint", buf_lint = "buf", ["cfn_lint"] = "cfn-lint", checkstyle = "checkstyle", @@ -346,6 +346,7 @@ return { gdlint = "gdtoolkit", golangcilint = "golangci-lint", hadolint = "hadolint", + htmlhint = "htmlhint", jsonlint = "jsonlint", luacheck = "luacheck", mypy = "mypy", @@ -358,6 +359,7 @@ return { revive = "revive", rstcheck = "rstcheck", selene = "selene", + snyk = "snyk", solhint = "solhint", tfsec = "tfsec", trivy = "trivy", @@ -365,4 +367,5 @@ return { vint = "vint", vulture = "vulture", yamllint = "yamllint", + checkmake = "checkmake", }