aboutsummaryrefslogtreecommitdiff
path: root/lua/luatab/init.lua
diff options
context:
space:
mode:
authorAlvaro Sevilla <alvaro@chainalysis.com>2021-07-18 11:28:19 +0200
committerAlvaro Sevilla <alvaro@chainalysis.com>2021-07-18 11:28:19 +0200
commit43ea029def01d9c3a7b4ff4700a312bfc6dad1b1 (patch)
tree4428522ba5405c9fb1741c00f6775488a12d0380 /lua/luatab/init.lua
parentd8e9cae311c125b8469caa02efede2f5ae363a63 (diff)
downloadminitab.nvim-43ea029def01d9c3a7b4ff4700a312bfc6dad1b1.tar.xz
minitab.nvim-43ea029def01d9c3a7b4ff4700a312bfc6dad1b1.zip
Use extension instead of filetype for devicon lookup
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 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'