Skip to content

Commit

Permalink
fix: guard fmt autocmd lint trigger (#198)
Browse files Browse the repository at this point in the history
* Update FUNDING.yml

* chore(doc): auto generate docs

* fix: guard fmt trigger condition

* chore(doc): auto generate docs

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
xiaoshihou514 and github-actions[bot] authored Mar 5, 2025
1 parent db5bbcd commit 3f5a7b3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
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 February 24
*guard.nvim.txt* For NVIM v0.8.0 Last change: 2025 March 05

==============================================================================
Table of Contents *guard.nvim-table-of-contents*
Expand Down
2 changes: 1 addition & 1 deletion lua/guard/events.lua
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ function M.try_attach_lint_to_buf(buf, events, ft)
group = M.group,
pattern = 'GuardFmt',
callback = function(opt)
if opt.data.status == 'done' then
if opt.buf == buf and opt.data.status == 'done' then
lazy_debounced_lint(opt)
end
end,
Expand Down
2 changes: 1 addition & 1 deletion lua/guard/health.lua
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ local function dump_tools(buf)
end

if #linters > 0 then
info('formatters:')
info('linters:')
vim.iter(linters):map(vim.inspect):each(info)
end
end
Expand Down

0 comments on commit 3f5a7b3

Please sign in to comment.