nanozuki / tabby.nvim

A declarative, highly configurable, and neovim style tabline plugin. Use your nvim tabs as a workspace multiplexer!
MIT License
563 stars 21 forks source link

Added Default Icon to win.file_icon function #102

Closed 007Psycho007 closed 1 year ago

007Psycho007 commented 1 year ago

When trying to use File_Icon function with unknown Filetypes like NvimTree the Tabby line wasnt rendering properly Example Configuration:

` line.wins_in_tab(line.api.get_current_tab()).foreach(function(win) local hl = win.is_current() and theme.current_tab or theme.inactive_tab return { line.sep('', hl, theme.fill), win.file_icon(), win.buf_name(), get_modified(win.buf().id), line.sep('', hl, theme.fill), hl = hl, margin = ' ', }

` Before image

Adding the default value to the call of Devicon function fixes this.

After image