We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0d975b4 commit 1fe6ed8Copy full SHA for 1fe6ed8
lua/nvim-tree/view.lua
@@ -9,6 +9,7 @@ local TABPAGES = {}
9
--- Debugging only.
10
--- Tabs show TABPAGES winnr and BUFNR_PER_TAB bufnr for the tab.
11
--- Orphans for inexistent tab_ids are shown at the right.
12
+--- lib.target_winid is always shown at the right next to a close button.
13
--- Enable with:
14
--- vim.opt.tabline = "%!v:lua.require('nvim-tree.view').tab_line()"
15
--- vim.opt.showtabline = 2
@@ -96,8 +97,8 @@ function M.tab_line()
96
97
tl = tl .. " "
98
end
99
- -- close button
100
- tl = tl .. "|%#TabLine#%999X X |"
+ -- target win id and close button
101
+ tl = tl .. "|%#TabLine# twi" .. (require("nvim-tree.lib").target_winid or "?") .. " %999X| X |"
102
103
return tl
104
0 commit comments