Skip to content

Commit

Permalink
fix(api): disable-fmt should set cache to nil
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoshihou514 authored Jan 13, 2025
1 parent 612b1a7 commit eb9c55b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/guard/api.lua
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ function M.disable_fmt(bufnr)
vim.iter(events.get_format_autocmds(buf)):each(function(it)
api.nvim_del_autocmd(it.id)
end)
events.user_fmt_autocmds[vim.bo[buf].ft] = {}
events.user_fmt_autocmds[vim.bo[buf].ft] = nil
end

---Enable lint for bufnr or current buffer
Expand Down

0 comments on commit eb9c55b

Please sign in to comment.