From 00eff4b196521adc35d11c605decacef5bc98fa3 Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Tue, 8 Apr 2025 11:11:38 +0800 Subject: vim-patch:9.1.1283: quickfix stack is limited to 10 items Problem: quickfix and location-list stack is limited to 10 items Solution: add the 'chistory' and 'lhistory' options to configure a larger quickfix/location list stack (64-bitman) closes: vim/vim#16920 https://github.com/vim/vim/commit/88d41ab270a8390a43da97a903b1a4d76b89d330 Co-authored-by: 64-bitman <60551350+64-bitman@users.noreply.github.com> Co-authored-by: Hirohito Higashi --- runtime/lua/vim/_meta/options.lua | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) (limited to 'runtime/lua/vim') diff --git a/runtime/lua/vim/_meta/options.lua b/runtime/lua/vim/_meta/options.lua index b681321d75..54c8c0c6b3 100644 --- a/runtime/lua/vim/_meta/options.lua +++ b/runtime/lua/vim/_meta/options.lua @@ -799,6 +799,20 @@ vim.o.ccv = vim.o.charconvert vim.go.charconvert = vim.o.charconvert vim.go.ccv = vim.go.charconvert +--- Number of quickfix lists that should be remembered for the quickfix +--- stack. Must be between 1 and 100. If the option is set to a value +--- that is lower than the amount of entries in the quickfix list stack, +--- entries will be removed starting from the oldest one. If the current +--- quickfix list was removed, then the quickfix list at top of the stack +--- (the most recently created) will be used in its place. For additional +--- info, see `quickfix-stack`. +--- +--- @type integer +vim.o.chistory = 10 +vim.o.chi = vim.o.chistory +vim.go.chistory = vim.o.chistory +vim.go.chi = vim.go.chistory + --- Enables automatic C program indenting. See 'cinkeys' to set the keys --- that trigger reindenting in insert mode and 'cinoptions' to set your --- preferred indent style. @@ -3730,6 +3744,20 @@ vim.o.lz = vim.o.lazyredraw vim.go.lazyredraw = vim.o.lazyredraw vim.go.lz = vim.go.lazyredraw +--- Like 'chistory', but for the location list stack associated with the +--- current window. If the option is changed in either the location list +--- window itself or the the window that is associated with the location +--- list stack, the new value will also be applied to the other one. This +--- means this value will always be the same for a given location list +--- window and its corresponding window. See `quickfix-stack` for +--- additional info. +--- +--- @type integer +vim.o.lhistory = 10 +vim.o.lhi = vim.o.lhistory +vim.wo.lhistory = vim.o.lhistory +vim.wo.lhi = vim.wo.lhistory + --- If on, Vim will wrap long lines at a character in 'breakat' rather --- than at the last character that fits on the screen. Unlike --- 'wrapmargin' and 'textwidth', this does not insert s in the file, -- cgit