Closed 007Psycho007 closed 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
Adding the default value to the call of Devicon function fixes this.
After
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](https://user-images.githubusercontent.com/24194327/208514684-6cb77479-e5f1-4800-9c25-c6b36440fef8.png)
Adding the default value to the call of Devicon function fixes this.
After![image](https://user-images.githubusercontent.com/24194327/208515348-996f67f4-1681-4c99-ab3c-47e1f10e9fb0.png)