[Feature Request]: Add global
to vim.o.sessionoptions
automatically (if persist_buffer_sort
is True)
#969
Labels
enhancement
New feature or request
What?
If
persist_buffer_sort == true
, then before setting up the auto command we should also check to see thatglobal
is insessionoptions
. If not, we should insert it.This also brings up the edge case where pinned buffers won't persist if
persist_buffer_sort == false
. In that case, we can make this functionality togglable as well and insertglobal
if either one is true as specified in theconfig
table.We could also just ignore all of this and insert
global
into session options during plugin setup, regardless of the config options.Why?
There are already multiple issues in the past (#660, #649) where people have forgot to add
global
into session options. I admit that it took me a while to pinpoint this problem as well, and technically this is written in the help/doc file at the end of the section. However, the readme file implied that buffer order persists out-of-the-box, yet that's not entirely the case. I personally care about the ordering of my buffers (that's why I chose this plugin in the first place), so I think settingsessionoptions
within the plugin would prevent future users from struggling with this.If it's decided that no code changes would result from this issue, I suggest at least moving the disclaimer to the README just so others see this more clearly.
Thanks!
The text was updated successfully, but these errors were encountered: