mirror of
https://github.com/neovim/neovim.git
synced 2026-07-14 13:20:35 +00:00
feat(jumplist): allow opting out of removing unloaded buffers (#30419)
Problem: Cannot opt out of removing unloaded buffers from the jumplist. Solution: Only enable that with "clean" flag in 'jumpoptions'.
This commit is contained in:
5
runtime/lua/vim/_meta/options.lua
generated
5
runtime/lua/vim/_meta/options.lua
generated
@@ -3541,8 +3541,11 @@ vim.go.js = vim.go.joinspaces
|
||||
--- |alternate-file` or using `mark-motions` try to
|
||||
--- restore the `mark-view` in which the action occurred.
|
||||
---
|
||||
--- clean Remove unloaded buffers from the jumplist.
|
||||
--- EXPERIMENTAL: this flag may change in the future.
|
||||
---
|
||||
--- @type string
|
||||
vim.o.jumpoptions = ""
|
||||
vim.o.jumpoptions = "clean"
|
||||
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