You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TLDR; If I open a file with --remote, that file is opened when the session is reloaded no matter if it is previously bded or not. Can I disable this feature? I checked sessionoptions but there is nothing related. (I'm using LazyVim distro)
Now the long story...
In one terminal window, I start nvim in listening mode like this: (inside /home/user)
nvim --listen ~/.cache/nvim/server.pipe
And in another window, I'm opening a file in that remote nvim like this: (again inside /home/user, but doesn't matter)
From this point on, whenever I restart nvim in /home/user, that some_file.txt is opened when I reload the session even when I previously deleted that buffer with bd. This behavior does not exist if I use --remote-send like this:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
TLDR; If I open a file with --remote, that file is opened when the session is reloaded no matter if it is previously
bd
ed or not. Can I disable this feature? I checkedsessionoptions
but there is nothing related. (I'm using LazyVim distro)Now the long story...
In one terminal window, I start nvim in listening mode like this: (inside /home/user)
nvim --listen ~/.cache/nvim/server.pipe
And in another window, I'm opening a file in that remote nvim like this: (again inside /home/user, but doesn't matter)
nvim --server ~/.cache/nvim/server.pipe --remote /home/user/some_file.txt
From this point on, whenever I restart nvim in /home/user, that
some_file.txt
is opened when I reload the session even when I previously deleted that buffer withbd
. This behavior does not exist if I use --remote-send like this:nvim --server ~/.cache/nvim/server.pipe --remote-send ":e /home/user/some_file.txt<CR>
I inspected my session file and there is an entry like this:
$argadd some_file.txt
which I cannot disable.Beta Was this translation helpful? Give feedback.
All reactions