Trantorian1

Results 3 comments of Trantorian1

Hey, I was having exactly the same problem as you. You might have some luck saving the current buffer name with ```lua local buffer_current = vim.api.nvim_buf_get_name(0) ``` And then reverting...

What would be most useful though would be some form of **publicly available library callback**, kind of like [ToggleTerm](https://github.com/akinsho/toggleterm.nvim#setup)'s `on_open` and `on_close` callbacks which can be specified in the plugin's...

After some further testing I would recommend using `wincmd` to switch back to buffer instead of 'buffer'