Closed pharaok closed 1 year ago
I'm using stickybuf with toggleterm, which sets some window options that stay with the newly opened buffer, so I would like a way to reset them.
Example:
require("stickybuf").pin_filetype(false, function() vim.wo.winhighlight = "" vim.wo.number = vim.go.number vim.wo.relativenumber = vim.go.relativenumber end)
I've added this by means of the restore_callback option on the stickybuf.pin function. See the API docs for details
restore_callback
stickybuf.pin
I'm using stickybuf with toggleterm, which sets some window options that stay with the newly opened buffer, so I would like a way to reset them.
Example: