Open ten3roberts opened 2 years ago
Thanks for the report. Please indicate the version of neovim and the detailed reproduction procedure.
Use lir.float.init
Use actions.up through keybind and a new window will open behind.
I think the issue is due to this
The expected behaviour is to open in the floating window
NVIM v0.7.0-dev+997-g21cdecc8e, but is present in newer versions on another computer
I have performed the following steps and it is working fine, can you please try?
nvim -u minvimrc -i NONE
:lua require'lir.float'.init()
l
, press h
Neovim version: NVIM v0.7.0-dev+1115-g5cb45dffb
I am sorry for taking such a while to respond, hectic week with exams.
Anyways, I found the culprit
The plugin stickybuf prevented the new buffer from opening. The plugins purpose is to prevent files from opening in tree view buffers.
Removing the plugin fixes the issue, though it enables one to open files inside tree windows, which isn't such a big issue.
Just out of curiosity:
Is it possible to set the ctx.dir
and have it update without reloading the file manager using edit dir
. I didn't get the first method to work in my small attempts, maybe something like that could be used to prevent firing more autocommands from other plugins
When using the floating window and entering a directory, either through
actions.up
oractions.edit
the directory is opened in a new non floating buffer behind the floating window, which remains but loses focus.The floating window needs to be manually focused and closed and navigation can not continue in a floating window