flatten.nvim icon indicating copy to clipboard operation
flatten.nvim copied to clipboard

should_block hook does not work

Open silvarc141 opened this issue 1 year ago • 0 comments

To Reproduce Config:

-- buffer opens in a tab so config loads
window = { 
  open = "tab",
},
-- works properly, otherwise has no effect on the issue
-- block_for = {
--   gitcommit = true,
--   gitrebase = true,
--   nu = true,
-- },
hooks = {
  -- does not work: true, false, not set - same result
  should_block = function(argv) return true end
  -- should_block = function(argv) return false end
}

Expected behavior should_block hook determines when host should be blocked

Desktop (please complete the following information):

  • NixOS
  • alacritty, neovide
  • NVIM v0.10.2

Additional context Initially started with the second config from the README, tried to narrow it down

silvarc141 avatar Jan 17 '25 05:01 silvarc141