diff options
author | Franciszek Malinka <franciszek.malinka@gmail.com> | 2022-06-07 18:52:55 +0200 |
---|---|---|
committer | Franciszek Malinka <franciszek.malinka@gmail.com> | 2022-06-07 18:52:55 +0200 |
commit | e85e77c7e62f2c01cf2b3dd9f7199c61e23ec0a3 (patch) | |
tree | 8a21bc566bbd1291831f021d038f5a0e4617ffc5 /lua | |
parent | 7e4298b9bbc2699433106a24251c8bea58ef0773 (diff) |
Nvim tree update, fixed config
Diffstat (limited to 'lua')
-rw-r--r-- | lua/user/nvimtree.lua | 45 |
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, |