Closed Hunter522 closed 3 years ago
I have set hidden
since I start to use neovim.
But I can't reproduce your issue, maybe mini.vim you provided is fake.
Check out whether the other file manager plugin wiped the buffer.
You're right, I moved my ~/.local/share/nvim
(I use paq-nvim) dir somewhere else, reinstalled vim-plug
, launched neovim, ran PlugInstall
, restarted neovim with the above mini.vim
and it seems to work. Essentially clean neovim + vim-plug install. Must have been something weird lingering behind like using another plugin even though I was using the -u mini.vim
cmd line arg.
Please update the repo, I add double-check bufnr, will be silent now, but not sure whether work as expected.
I have the same issue, and after a couple hour of research I find out this problem is related to netrw, add this to init.lua solved my problem
let g:loaded_netrw = 1
let g:loaded_netrwPlugin = 1
just some variable to disable netrw, hope it work for you guys
nvim --version
: NVIM v0.5.0nvim +'checkhealth rnvimr'
:Ranger
Python
Pynvim
Ueberzug (optional)
RPC
When opening a directory with nvim, rnvimr will pop up. But when you try opening up a file when
hidden = true
rnvimr throws an error:To Reproduce using
nvim -u mini.vim
Example:
cat mini.vim
Steps to reproduce the behavior:
nvim -u mini.vim somedirectory
Expected behavior Ranger popup should close/hide when file is picked.
Additional context rnvimr seems to behave correctly with
hidden = true
as long as you dont start neovim on a directory. I've tested this with launching neovim with no arg, launching with file, and launching with session.I set
hidden
because I want to use https://github.com/akinsho/nvim-toggleterm.lua. I'm surehidden
is useful to other for other reasons.A workaround for me right now is to just run
neovim
with no args then toggle rnvimr and navigate to the directory I want.