diff options
author | zeertzjq <zeertzjq@outlook.com> | 2024-07-13 08:56:58 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-13 08:56:58 +0800 |
commit | b1aa8f5eb8a5407e869335e9987b73f8515c37e5 (patch) | |
tree | 11d8e4909a8b191fbe627354fe68972102d6e467 /src/nvim/options.lua | |
parent | 10256bb760fcab0dc25f7eb5b0b45966cb771939 (diff) | |
download | rneovim-b1aa8f5eb8a5407e869335e9987b73f8515c37e5.tar.gz rneovim-b1aa8f5eb8a5407e869335e9987b73f8515c37e5.tar.bz2 rneovim-b1aa8f5eb8a5407e869335e9987b73f8515c37e5.zip |
vim-patch:9.1.0572: cannot specify tab page closing behaviour (#29682)
Problem: cannot specify tab page closing behaviour
(Gianluca Pacchiella)
Solution: Add the 'tabclose' option (LemonBoy).
fixes: vim/vim#5967
closes: vim/vim#15204
https://github.com/vim/vim/commit/5247b0b92e191a046b034171a3b34031e317735f
Co-authored-by: LemonBoy <thatlemon@gmail.com>
Diffstat (limited to 'src/nvim/options.lua')
-rw-r--r-- | src/nvim/options.lua | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/nvim/options.lua b/src/nvim/options.lua index 6e317a426c..6345ef5ada 100644 --- a/src/nvim/options.lua +++ b/src/nvim/options.lua @@ -8507,6 +8507,30 @@ return { varname = 'p_syn', }, { + abbreviation = 'tcl', + cb = 'did_set_tabclose', + defaults = { if_true = '' }, + deny_duplicates = true, + desc = [=[ + This option controls the behavior when closing tab pages (e.g., using + |:tabclose|). When empty Vim goes to the next (right) tab page. + + Possible values (comma-separated list): + left If included, go to the previous tab page instead of + the next one. + uselast If included, go to the previously used tab page if + possible. This option takes precedence over the + others. + ]=], + expand_cb = 'expand_set_tabclose', + full_name = 'tabclose', + list = 'onecomma', + scope = { 'global' }, + short_desc = N_('which tab page to focus when closing a tab'), + type = 'string', + varname = 'p_tcl', + }, + { abbreviation = 'tal', cb = 'did_set_tabline', defaults = { if_true = '' }, |