From 43ea029def01d9c3a7b4ff4700a312bfc6dad1b1 Mon Sep 17 00:00:00 2001 From: Alvaro Sevilla Date: Sun, 18 Jul 2021 11:28:19 +0200 Subject: Use extension instead of filetype for devicon lookup --- lua/luatab/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lua') 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' -- cgit v1.2.3