aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/options.lua
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2024-06-30 06:40:31 +0800
committerGitHub <noreply@github.com>2024-06-30 06:40:31 +0800
commite7020306a19a5211c834966ec067fff3b981bdb9 (patch)
tree79436a276599e9c62f69d308d2d963e7f3dee1ac /src/nvim/options.lua
parent435d0182d293e70b14a5655c976c3c6daa6ea765 (diff)
downloadrneovim-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 'src/nvim/options.lua')
-rw-r--r--src/nvim/options.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/nvim/options.lua b/src/nvim/options.lua
index efa2ea7dd9..365679261c 100644
--- a/src/nvim/options.lua
+++ b/src/nvim/options.lua
@@ -4495,7 +4495,7 @@ return {
{
abbreviation = 'jop',
cb = 'did_set_jumpoptions',
- defaults = { if_true = '' },
+ defaults = { if_true = 'unload' },
deny_duplicates = true,
desc = [=[
List of words that change the behavior of the |jumplist|.
@@ -4508,6 +4508,9 @@ return {
view When moving through the jumplist, |changelist|,
|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.
]=],
expand_cb = 'expand_set_jumpoptions',
full_name = 'jumpoptions',