Skip to content

Commit

Permalink
fix(state): attach on BufNew as well. Fixes #681
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Jul 15, 2024
1 parent e81e55b commit 0f58176
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/which-key/state.lua
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ function M.setup()
end,
})

vim.api.nvim_create_autocmd({ "BufReadPost" }, {
vim.api.nvim_create_autocmd({ "BufReadPost", "BufNew" }, {
group = group,
callback = function(ev)
Util.debug(ev.event)
Expand Down

0 comments on commit 0f58176

Please sign in to comment.