Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion doc/guard.nvim.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
*guard.nvim.txt* For NVIM v0.8.0 Last change: 2025 June 10
*guard.nvim.txt* For NVIM v0.8.0 Last change: 2025 June 11

==============================================================================
Table of Contents *guard.nvim-table-of-contents*
Expand Down
7 changes: 5 additions & 2 deletions lua/guard/health.lua
Original file line number Diff line number Diff line change
Expand Up @@ -18,22 +18,25 @@ end

local function executable_check()
local checked = {}
local custom_checked = {}
for ft, item in pairs(filetype) do
if ft:find(',') then
goto continue
end

-- run executable or custom healt check
for _, conf in ipairs(item.formatter or {}) do
if conf.health then
if type(conf.health) == 'function' and not vim.tbl_contains(custom_checked, conf.health) then
conf.health()
table.insert(custom_checked, conf.health)
else
check_cmd(conf, checked)
end
end
for _, conf in ipairs(item.linter or {}) do
if conf.health then
if type(conf.health) == 'function' and not vim.tbl_contains(custom_checked, conf.health) then
conf.health()
table.insert(custom_checked, conf.health)
else
check_cmd(conf, checked)
end
Expand Down
Loading