diff options
author | Alvaro Sevilla <alvaro@chainalysis.com> | 2021-07-18 11:28:19 +0200 |
---|---|---|
committer | Alvaro Sevilla <alvaro@chainalysis.com> | 2021-07-18 11:28:19 +0200 |
commit | 43ea029def01d9c3a7b4ff4700a312bfc6dad1b1 (patch) | |
tree | 4428522ba5405c9fb1741c00f6775488a12d0380 /lua/luatab | |
parent | d8e9cae311c125b8469caa02efede2f5ae363a63 (diff) | |
download | minitab.nvim-43ea029def01d9c3a7b4ff4700a312bfc6dad1b1.tar.xz minitab.nvim-43ea029def01d9c3a7b4ff4700a312bfc6dad1b1.zip |
Use extension instead of filetype for devicon lookup
Diffstat (limited to 'lua/luatab')
-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 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' |