diff options
author | Alvaro Sevilla <alvaro@chainalysis.com> | 2021-07-20 14:13:33 +0200 |
---|---|---|
committer | Alvaro Sevilla <alvaro@chainalysis.com> | 2021-07-20 14:13:33 +0200 |
commit | 057808f95668f3497704487702528cfc080d58e4 (patch) | |
tree | 1001513611fb46bd4faf09cc040a9ba8ac35c0be | |
parent | 43ea029def01d9c3a7b4ff4700a312bfc6dad1b1 (diff) | |
download | minitab.nvim-057808f95668f3497704487702528cfc080d58e4.tar.xz minitab.nvim-057808f95668f3497704487702528cfc080d58e4.zip |
Fix devicon extension detection
fixes #6
-rw-r--r-- | lua/luatab/init.lua | 2 |
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' |