nvim-tree.lua (629B)
1 require("nvim-tree").setup({ 2 renderer = { 3 icons = { 4 show = { 5 file = true, 6 folder = false, 7 git = true, 8 }, 9 glyphs = { 10 git = { 11 staged = " ", 12 unstaged = " ", 13 unmerged = " ", 14 renamed = " ", 15 deleted = " ", 16 untracked = " ", 17 ignored = " ", 18 }, 19 }, 20 }, 21 22 }, 23 view = { 24 width = 25, 25 side = 'left', 26 }, 27 sync_root_with_cwd = false, --fix to open cwd with tree 28 respect_buf_cwd = false, 29 update_cwd = false, 30 update_focused_file = { 31 enable = true, 32 update_cwd = true, 33 update_root = true, 34 }, 35 }) 36 37 vim.g.nvim_tree_respect_buf_cwd = 1