mirror of
https://github.com/neovim/neovim.git
synced 2025-12-16 03:15:39 +00:00
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
88d41ab270
Co-authored-by: 64-bitman <60551350+64-bitman@users.noreply.github.com>
Co-authored-by: Hirohito Higashi <h.east.727@gmail.com>
This commit is contained in:
28
runtime/lua/vim/_meta/options.lua
generated
28
runtime/lua/vim/_meta/options.lua
generated
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user