From 2c464642266209f1285ee431e59b61e969f6e635 Mon Sep 17 00:00:00 2001 From: kiyan Date: Sun, 24 Apr 2022 11:29:03 +0200 Subject: [PATCH] chore: add more sensible defaults for icons adds a symlink and default icon by default fixes #1192 --- README.md | 4 ++-- doc/nvim-tree-lua.txt | 4 ++-- lua/nvim-tree/renderer/icon-config.lua | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 1cfbef39..074f0fc4 100644 --- a/README.md +++ b/README.md @@ -62,8 +62,8 @@ let g:nvim_tree_show_icons = { " default will show icon by default if no icon is provided " default shows no icon by default let g:nvim_tree_icons = { - \ 'default': "", - \ 'symlink': "", + \ 'default': "", + \ 'symlink': "", \ 'git': { \ 'unstaged': "✗", \ 'staged': "✓", diff --git a/doc/nvim-tree-lua.txt b/doc/nvim-tree-lua.txt index c870fc9e..cc4433a4 100644 --- a/doc/nvim-tree-lua.txt +++ b/doc/nvim-tree-lua.txt @@ -608,8 +608,8 @@ You can set icons for: - Symlinks. If an icon is not provided, the `default` icon is used. > let g:nvim_tree_icons = { - \ 'default': "", - \ 'symlink': "", + \ 'default': "", + \ 'symlink': "", \ 'git': { \ 'unstaged': "✗", \ 'staged': "✓", diff --git a/lua/nvim-tree/renderer/icon-config.lua b/lua/nvim-tree/renderer/icon-config.lua index 10bf0569..e6d8cfdc 100644 --- a/lua/nvim-tree/renderer/icon-config.lua +++ b/lua/nvim-tree/renderer/icon-config.lua @@ -3,8 +3,8 @@ local M = {} function M.get_config() local show_icons = vim.g.nvim_tree_show_icons or { git = 1, folders = 1, files = 1, folder_arrows = 1 } local icons = { - default = "", - symlink = "", + default = "", + symlink = "", git_icons = { unstaged = "✗", staged = "✓",