From e85e77c7e62f2c01cf2b3dd9f7199c61e23ec0a3 Mon Sep 17 00:00:00 2001 From: Franciszek Malinka Date: Tue, 7 Jun 2022 18:52:55 +0200 Subject: Nvim tree update, fixed config --- lua/user/nvimtree.lua | 45 ++++++++++++++++++++++++--------------------- 1 file changed, 24 insertions(+), 21 deletions(-) (limited to 'lua/user') 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, -- cgit v1.2.3