diff options
author | zeertzjq <zeertzjq@outlook.com> | 2024-06-30 06:40:31 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-30 06:40:31 +0800 |
commit | e7020306a19a5211c834966ec067fff3b981bdb9 (patch) | |
tree | 79436a276599e9c62f69d308d2d963e7f3dee1ac /runtime/lua/vim/_meta/options.lua | |
parent | 435d0182d293e70b14a5655c976c3c6daa6ea765 (diff) | |
download | rneovim-e7020306a19a5211c834966ec067fff3b981bdb9.tar.gz rneovim-e7020306a19a5211c834966ec067fff3b981bdb9.tar.bz2 rneovim-e7020306a19a5211c834966ec067fff3b981bdb9.zip |
feat(jumplist): allow opting out of removing unloaded buffers (#29347)
Problem: Cannot opt out of removing unloaded buffers from the jumplist.
Solution: Only enable that with "unload" flag in 'jumpoptions'.
Diffstat (limited to 'runtime/lua/vim/_meta/options.lua')
-rw-r--r-- | runtime/lua/vim/_meta/options.lua | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/runtime/lua/vim/_meta/options.lua b/runtime/lua/vim/_meta/options.lua index 902df8f7d6..fb04da14a5 100644 --- a/runtime/lua/vim/_meta/options.lua +++ b/runtime/lua/vim/_meta/options.lua @@ -3551,8 +3551,11 @@ vim.go.js = vim.go.joinspaces --- |alternate-file` or using `mark-motions` try to --- restore the `mark-view` in which the action occurred. --- +--- unload Remove unloaded buffers from the jumplist. +--- EXPERIMENTAL: this flag may change in the future. +--- --- @type string -vim.o.jumpoptions = "" +vim.o.jumpoptions = "unload" vim.o.jop = vim.o.jumpoptions vim.go.jumpoptions = vim.o.jumpoptions vim.go.jop = vim.go.jumpoptions |