From 057808f95668f3497704487702528cfc080d58e4 Mon Sep 17 00:00:00 2001 From: Alvaro Sevilla Date: Tue, 20 Jul 2021 14:13:33 +0200 Subject: Fix devicon extension detection fixes #6 --- 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 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' -- cgit v1.2.3