aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/options.lua
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2025-04-08 11:11:38 +0800
committerzeertzjq <zeertzjq@outlook.com>2025-04-08 13:06:19 +0800
commit00eff4b196521adc35d11c605decacef5bc98fa3 (patch)
tree200724f2187c38977316e06c810bb323736bb918 /src/nvim/options.lua
parent36d143e70722848855107ff05ab3997857b0c388 (diff)
downloadrneovim-00eff4b196521adc35d11c605decacef5bc98fa3.tar.gz
rneovim-00eff4b196521adc35d11c605decacef5bc98fa3.tar.bz2
rneovim-00eff4b196521adc35d11c605decacef5bc98fa3.zip
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 <h.east.727@gmail.com>
Diffstat (limited to 'src/nvim/options.lua')
-rw-r--r--src/nvim/options.lua37
1 files changed, 37 insertions, 0 deletions
diff --git a/src/nvim/options.lua b/src/nvim/options.lua
index cfd92137d2..e9fa18c98f 100644
--- a/src/nvim/options.lua
+++ b/src/nvim/options.lua
@@ -1123,6 +1123,25 @@ local options = {
varname = 'p_ccv',
},
{
+ abbreviation = 'chi',
+ cb = 'did_set_xhistory',
+ defaults = 10,
+ desc = [=[
+ 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|.
+ ]=],
+ full_name = 'chistory',
+ scope = { 'global' },
+ short_desc = N_('number of quickfix lists stored in history'),
+ type = 'number',
+ varname = 'p_chi',
+ },
+ {
abbreviation = 'cin',
defaults = false,
desc = [=[
@@ -5023,6 +5042,24 @@ local options = {
varname = 'p_lz',
},
{
+ abbreviation = 'lhi',
+ cb = 'did_set_xhistory',
+ defaults = 10,
+ desc = [=[
+ 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.
+ ]=],
+ full_name = 'lhistory',
+ scope = { 'win' },
+ short_desc = N_('number of location lists stored in history'),
+ type = 'number',
+ },
+ {
abbreviation = 'lbr',
defaults = false,
desc = [=[