aboutsummaryrefslogtreecommitdiff
path: root/lua
diff options
context:
space:
mode:
authorAlvaro Sevilla <alvaro@chainalysis.com>2021-07-20 14:13:33 +0200
committerAlvaro Sevilla <alvaro@chainalysis.com>2021-07-20 14:13:33 +0200
commit057808f95668f3497704487702528cfc080d58e4 (patch)
tree1001513611fb46bd4faf09cc040a9ba8ac35c0be /lua
parent43ea029def01d9c3a7b4ff4700a312bfc6dad1b1 (diff)
downloadminitab.nvim-057808f95668f3497704487702528cfc080d58e4.tar.xz
minitab.nvim-057808f95668f3497704487702528cfc080d58e4.zip
Fix devicon extension detection
fixes #6
Diffstat (limited to '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'