Skip to content
Discussion options

You must be logged in to vote

Yeah, it seems to be a combination of two things:

  • The :mksession always preserves argument list. It can be fixed on 'mini.sessions' side.
  • The :restart command always restarts respecting arguments passed before --, like nvim ~/.config/nvim. This is documented and can not be fixed on 'mini.sessions' side (the responsible v:argf variable is read-only). This behavior will probably be revised.

So @andradei, if you want to not have this behavior, my best suggestions are:

  • Use nvim -- ~/.config/nvim to open directories.

  • Append the autocommand from the original comment with vim.cmd('%argdelete'). This will clear the argument list on top of deleting the buffer for the opened directory. Not ne…

Replies: 4 comments 11 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@echasnovski
Comment options

Answer selected by echasnovski
@andradei
Comment options

@echasnovski
Comment options

@echasnovski
Comment options

Comment options

You must be logged in to vote
4 replies
@echasnovski
Comment options

@abeldekat
Comment options

@echasnovski
Comment options

@andradei
Comment options

Comment options

You must be logged in to vote
3 replies
@echasnovski
Comment options

@abeldekat
Comment options

@echasnovski
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested mini.sessions
4 participants