aboutsummaryrefslogtreecommitdiff
path: root/lua/luatab/init.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/luatab/init.lua')
-rw-r--r--lua/luatab/init.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/lua/luatab/init.lua b/lua/luatab/init.lua
index 2204468..65fe0ec 100644
--- a/lua/luatab/init.lua
+++ b/lua/luatab/init.lua
@@ -42,7 +42,7 @@ local function tabDevicon(bufnr, isSelected)
elseif buftype == 'terminal' then
dev, devhl = require'nvim-web-devicons'.get_icon('zsh')
else
- dev, devhl = require'nvim-web-devicons'.get_icon(file, vim.fn.expand('%:e'))
+ dev, devhl = require'nvim-web-devicons'.get_icon(file, vim.fn.expand('#'..bufnr..':e'))
end
if dev then
local h = require'luatab.highlight'