feat: show default file icon when nvim-devicon is not installed (#696)

This commit is contained in:
gzygmanski
2021-10-08 21:53:31 +02:00
committed by GitHub
parent c0dcbbd285
commit 385f8c89e0
3 changed files with 20 additions and 14 deletions

View File

@@ -60,10 +60,11 @@ function M.get_icon_state()
local has_devicons = pcall(require, 'nvim-web-devicons')
return {
show_file_icon = show_icons.files == 1 and has_devicons,
show_file_icon = show_icons.files == 1,
show_folder_icon = show_icons.folders == 1,
show_git_icon = show_icons.git == 1,
show_folder_arrows = show_icons.folder_arrows == 1,
has_devicons = has_devicons,
icons = icons
}
end