Fallback to default icon for symlinks and fix padding

Fixes https://github.com/kyazdani42/nvim-tree.lua/issues/80
This commit is contained in:
Santos Gallegos
2020-08-03 18:09:50 -05:00
committed by Kiyan Yazdani
parent 62846b1e31
commit 222732d9d4
4 changed files with 33 additions and 6 deletions

View File

@@ -87,11 +87,16 @@ is installed and in your |runtimepath|
|g:lua_tree_icons| *g:lua_tree_icons*
You can set some icons for the git status and the default icon that shows
when no icon is found for a file.
You can set icons for:
- The git status.
- The default icon that shows when no icon is found for a file
or if you are not using icons.
- Symlinks. If an icon is not provided, the `default` icon is used.
>
let g:lua_tree_icons = {
\ 'default': '',
\ 'symlink': '',
\ 'git': {
\ 'unstaged': "✗",
\ 'staged': "✓",