aboutsummaryrefslogtreecommitdiff
path: root/lua/luatab
diff options
context:
space:
mode:
Diffstat (limited to 'lua/luatab')
-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 486b004..2204468 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.getbufvar(bufnr, '&filetype'))
+ dev, devhl = require'nvim-web-devicons'.get_icon(file, vim.fn.expand('%:e'))
end
if dev then
local h = require'luatab.highlight'