mirror of
https://github.com/neovim/neovim.git
synced 2026-01-06 19:39:53 +10:00
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'.
This commit is contained in:
5
runtime/lua/vim/_meta/options.lua
generated
5
runtime/lua/vim/_meta/options.lua
generated
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user