diff options
author | zeertzjq <zeertzjq@outlook.com> | 2024-02-19 11:22:00 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-19 11:22:00 +0800 |
commit | a9f578b7a5edbca9aa01548f37341c2b97b57cda (patch) | |
tree | 44c8ccc4113a05c0b10a12f9c678619be0b67acf /runtime/lua/vim | |
parent | fa131de9adb74ac1f9f46eaecd5613f38d9c2ed7 (diff) | |
download | rneovim-a9f578b7a5edbca9aa01548f37341c2b97b57cda.tar.gz rneovim-a9f578b7a5edbca9aa01548f37341c2b97b57cda.tar.bz2 rneovim-a9f578b7a5edbca9aa01548f37341c2b97b57cda.zip |
docs: improve 'tabline' click label docs (#27529)
Diffstat (limited to 'runtime/lua/vim')
-rw-r--r-- | runtime/lua/vim/_meta/options.lua | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/runtime/lua/vim/_meta/options.lua b/runtime/lua/vim/_meta/options.lua index 835bd95a3a..5a9215fa9e 100644 --- a/runtime/lua/vim/_meta/options.lua +++ b/runtime/lua/vim/_meta/options.lua @@ -6525,16 +6525,17 @@ vim.wo.stc = vim.wo.statuscolumn --- ) - End of item group. No width fields allowed. --- T N For 'tabline': start of tab page N label. Use %T or %X to end --- the label. Clicking this label with left mouse button switches ---- to the specified tab page. +--- to the specified tab page, while clicking it with middle mouse +--- button closes the specified tab page. --- X N For 'tabline': start of close tab N label. Use %X or %T to end --- the label, e.g.: %3Xclose%X. Use %999X for a "close current ---- tab" label. Clicking this label with left mouse button closes ---- specified tab page. ---- @ N Start of execute function label. Use %X or %T to ---- end the label, e.g.: %10@SwitchBuffer@foo.c%X. Clicking this ---- label runs specified function: in the example when clicking once ---- using left mouse button on "foo.c" "SwitchBuffer(10, 1, 'l', ---- ' ')" expression will be run. Function receives the +--- tab" label. Clicking this label with left mouse button closes +--- the specified tab page. +--- @ N Start of execute function label. Use %X or %T to end the label, +--- e.g.: %10@SwitchBuffer@foo.c%X. Clicking this label runs the +--- specified function: in the example when clicking once using left +--- mouse button on "foo.c", a `SwitchBuffer(10, 1, 'l', ' ')` +--- expression will be run. The specified function receives the --- following arguments in order: --- 1. minwid field value or zero if no N was specified --- 2. number of mouse clicks to detect multiple clicks |