aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lua/user/nvimtree.lua45
1 files changed, 24 insertions, 21 deletions
diff --git a/lua/user/nvimtree.lua b/lua/user/nvimtree.lua
index 9e66654..fb53915 100644
--- a/lua/user/nvimtree.lua
+++ b/lua/user/nvimtree.lua
@@ -9,27 +9,6 @@ if not config_status_ok then
return
end
-vim.g.nvim_tree_icons = {
- default = "",
- symlink = "",
- git = {
- unstaged = "",
- staged = "S",
- unmerged = "",
- renamed = "➜",
- deleted = "",
- untracked = "U",
- ignored = "◌",
- },
- folder = {
- default = "",
- open = "",
- empty = "",
- empty_open = "",
- symlink = "",
- },
-}
-
local tree_cb = nvim_tree_config.nvim_tree_callback
nvim_tree.setup {
@@ -42,6 +21,30 @@ nvim_tree.setup {
open_on_tab = false,
hijack_cursor = false,
update_cwd = true,
+ renderer = {
+ icons = {
+ glyphs = {
+ default = "",
+ symlink = "",
+ git = {
+ unstaged = "",
+ staged = "S",
+ unmerged = "",
+ renamed = "➜",
+ deleted = "",
+ untracked = "U",
+ ignored = "◌",
+ },
+ folder = {
+ default = "",
+ open = "",
+ empty = "",
+ empty_open = "",
+ symlink = "",
+ },
+ },
+ },
+ },
-- update_to_buf_dir = {
-- enable = true,
-- auto_open = true,