axkirillov / hbac.nvim

Heuristic buffer auto-close
MIT License
195 stars 9 forks source link

Cooperate with early-retirement #23

Open jonestristand opened 5 months ago

jonestristand commented 5 months ago

Trying to get this to work well with early-retirement.nvim... Is there a way to hook pinning a buffer so that I can set vim.b.ignore_early_retirement = true on the buffer as well and make early-retirement.nvim also ignore pinned buffers?

axkirillov commented 4 months ago

Currently we do not let users define callbacks for the pin function, but that's an interesting idea. I would be open to look at a PR for this. The way I would do this is let the user define a function that runs every time toggle_pin is run. Feel free to ask any further questions.