aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/options.lua
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2024-03-11 12:05:01 +0800
committerGitHub <noreply@github.com>2024-03-11 12:05:01 +0800
commit3814750d3789b5c5690e8fa68066bd864a4f0a8e (patch)
tree8958b54539e3b4df3b8e6eebf6f11c7fbecc1662 /src/nvim/options.lua
parenta09ddd7ce55037edc9747a682810fba6a26bc201 (diff)
parent3b3511c4d9f1855d4240da0d844ce7875176c607 (diff)
downloadrneovim-3814750d3789b5c5690e8fa68066bd864a4f0a8e.tar.gz
rneovim-3814750d3789b5c5690e8fa68066bd864a4f0a8e.tar.bz2
rneovim-3814750d3789b5c5690e8fa68066bd864a4f0a8e.zip
Merge pull request #27738 from ColinKennedy/vim-9.1.0147
vim-patch:9.1.{0147,0149,0150,0152,0156},58f1e5c0893a: 'winfixbuf'
Diffstat (limited to 'src/nvim/options.lua')
-rw-r--r--src/nvim/options.lua19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/nvim/options.lua b/src/nvim/options.lua
index 72f9ff849d..5e8bc1361c 100644
--- a/src/nvim/options.lua
+++ b/src/nvim/options.lua
@@ -8406,6 +8406,8 @@ return {
"split" when both are present.
uselast If included, jump to the previously used window when
jumping to errors with |quickfix| commands.
+ If a window has 'winfixbuf' enabled, 'switchbuf' is currently not
+ applied to the split window.
]=],
expand_cb = 'expand_set_switchbuf',
full_name = 'switchbuf',
@@ -9817,6 +9819,23 @@ return {
varname = 'p_window',
},
{
+ abbreviation = 'wfb',
+ defaults = { if_true = false },
+ desc = [=[
+ If enabled, the buffer and any window that displays it are paired.
+ For example, attempting to change the buffer with |:edit| will fail.
+ Other commands which change a window's buffer such as |:cnext| will
+ also skip any window with 'winfixbuf' enabled. However if a command
+ has an "!" option, a window can be forced to switch buffers.
+ ]=],
+ full_name = 'winfixbuf',
+ pv_name = 'p_wfb',
+ redraw = { 'current_window' },
+ scope = { 'window' },
+ short_desc = N_('pin a window to a specific buffer'),
+ type = 'boolean',
+ },
+ {
abbreviation = 'wfh',
defaults = { if_true = false },
desc = [=[