mcchrish / nnn.vim

File manager for vim/neovim powered by n³
BSD 2-Clause "Simplified" License
645 stars 24 forks source link

use tab-local variables for explorer exit callback #142

Closed N-R-K closed 2 years ago

N-R-K commented 2 years ago

Closes: https://github.com/mcchrish/nnn.vim/issues/141


The patch is still a bit messy and could use some cleanup.

But first I'd like to see if any weird environment specific behavior comes up. For example using execute win_id2win(l:term.winhandle) . 'close' in vim (neovim works fine) was resulting wiping the regular buffer as well while call win_execute(l:term.winhandle, 'close') works fine.

mcchrish commented 2 years ago

Probably try to use nvim_win_close() for neovim while use win_execute(.., 'close') in vim. Let's see if that's more stable.

N-R-K commented 2 years ago

Probably try to use nvim_win_close() for neovim while use win_execute(.., 'close') in vim. Let's see if that's more stable.

Ahh, nice. It's already using that for nvim, glanced over it. Makes sense why nvim doesn't have that problems.