From 1b488d80772e59c6fde2453929d4060118c39983 Mon Sep 17 00:00:00 2001
From: Alvaro <alvaro@chainalysis.com>
Date: Wed, 3 Jul 2024 17:24:47 +0200
Subject: Fix devicon detection

---
 lua/luatab/init.lua | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/lua/luatab/init.lua b/lua/luatab/init.lua
index cbd97ed..d18d6e7 100644
--- a/lua/luatab/init.lua
+++ b/lua/luatab/init.lua
@@ -42,7 +42,7 @@ end
 
 M.devicon = function(bufnr, isSelected)
     local icon, devhl
-    local file = vim.fn.bufname(bufnr)
+    local file = vim.fn.fnamemodify(vim.fn.bufname(bufnr), ':t')
     local buftype = vim.fn.getbufvar(bufnr, '&buftype')
     local filetype = vim.fn.getbufvar(bufnr, '&filetype')
     local devicons = require'nvim-web-devicons'
@@ -114,10 +114,10 @@ local setup = function(opts)
 end
 
 local warning = function()
-    error [[ 
+    error [[
 Hi, I've updated luatab.nvim to allow some proper configuration. As a result, I need to make a breaking change to the config. Apologies for the inconvinence.
 If you had:
-    vim.o.tabline = '%!v:lua.require\'luatab\'.tabline()' 
+    vim.o.tabline = '%!v:lua.require\'luatab\'.tabline()'
 please replace it with
     require('luatab').setup({})
 ]]
-- 
cgit v1.2.3