Skip to content

should_block hook does not work #107

@silvarc141

Description

@silvarc141

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions