diff options
author | Alvaro <alvaro@chainalysis.com> | 2024-07-03 17:24:47 +0200 |
---|---|---|
committer | Alvaro <alvaro@chainalysis.com> | 2024-07-03 17:24:47 +0200 |
commit | 1b488d80772e59c6fde2453929d4060118c39983 (patch) | |
tree | 4a791520a91bc18cf909785572637e8fcc136b7d /lua/luatab/init.lua | |
parent | 0a48e34ff2d0c5de8cb89db052886920c21ffc0d (diff) | |
download | minitab.nvim-1b488d80772e59c6fde2453929d4060118c39983.tar.xz minitab.nvim-1b488d80772e59c6fde2453929d4060118c39983.zip |
Fix devicon detection
Diffstat (limited to 'lua/luatab/init.lua')
-rw-r--r-- | lua/luatab/init.lua | 6 |
1 files 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({}) ]] |