diff options
author | zeertzjq <zeertzjq@outlook.com> | 2025-04-08 11:11:38 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2025-04-08 13:06:19 +0800 |
commit | 00eff4b196521adc35d11c605decacef5bc98fa3 (patch) | |
tree | 200724f2187c38977316e06c810bb323736bb918 /runtime/lua/vim | |
parent | 36d143e70722848855107ff05ab3997857b0c388 (diff) | |
download | rneovim-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 'runtime/lua/vim')
-rw-r--r-- | runtime/lua/vim/_meta/options.lua | 28 |
1 files changed, 28 insertions, 0 deletions
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 <EOL>s in the file, |