Skip to content

Fails to display git icons, Shift+R removes git icons #1966

Closed
@hinell

Description

@hinell
Neovim-tree-fails-to-display-git-info-2023-02-03_00.36.00.mp4.mov

CTRL+S is bound to :update command

Description

Git icons aren't displayed. If I save an edited file (or remove existing one by dkey) , they appear again (i.e. U symbols) . But when Shift + R is hit (in the NvimTree buffer), all icons disappear.

Neovim version

NVIM v0.9.0-dev-d3355ad
Build type: MinSizeRel
LuaJIT 2.1.0-beta3

Operating system and version

Ubuntu 22.04.1 LTS

nvim-tree version

16a0e3c

Minimal config

        vim.g.loaded_netrw = 1
        vim.g.loaded_netrwPlugin = 1
        require("nvim-tree").setup({
          sort_by = "case_sensitive",
          sync_root_with_cwd = true,
          open_on_tab = false, -- TODO: Open issue to make it new tab 
          open_on_setup = true,
          open_on_setup_file = false,
		  ignore_ft_on_setup={ "help", "man" },
          actions = {
            use_system_clipboard = true
          },
          view = {
            adaptive_size = true,
            side  = "right",
            width = 48
          },
          renderer = {
            group_empty = true,
            icons = {
				webdev_colors = false, 
				git_placement = "after",
				modified_placement = "after",
				glyphs = {
					git = {
						-- Git style symbols
						unstaged  = "U",
						staged    = "A",
						unmerged  = "M",
						renamed   = "R",
						untracked = "?",
						deleted   = "R",
						ignored   = "!"
					}
				}
            }
          },
          filters = {
            dotfiles = false,
          },
          -- Disable all keys to be set up by Legendary 
          remove_keymaps = keystodisable
        })

Steps to reproduce

Not even sure?

Expected behavior

All Git icons sync-ed to the working directory.

Actual behavior

No Git icons

Log

~/.cache/nvim/nvim-tree.log

[2023-02-03 02:20:37] [git] { "git", "-C", "/home/USER/.config/nvim", "rev-parse", "--show-toplevel" }
/home/USER
[2023-02-03 02:20:37] [git] { "git", "-C", "/home/USER", "config", "status.showUntrackedFiles" }
[2023-02-03 02:20:37] [git] running job with timeout 400ms
[2023-02-03 02:20:37] [git] git --no-optional-locks status --porcelain=v1 -z --ignored=matching -u
[2023-02-03 02:20:37] [git] job timed out  /home/USER nil
[2023-02-03 02:22:41] [git] { "git", "-C", "/home/USER/.config/nvim/USER", "rev-parse", "--show-toplevel" }
/home/USER
[2023-02-03 02:22:49] [git] running job with timeout 400ms
[2023-02-03 02:22:49] [git] git --no-optional-locks status --porcelain=v1 -z --ignored=matching -u /home/USER/.config/nvim/USER
 M .config/nvim/USER/keymaps.lua
 M .config/nvim/USER/platform.lua
 M .config/nvim/USER/plugins-legendary.lua
 M .config/nvim/USER/plugins-nvim-tree.lua
 M .config/nvim/USER/plugins-snippets.lua
 M .config/nvim/USER/plugins-ui.lua
 M .config/nvim/USER/plugins.lua
[2023-02-03 02:22:50] [git] done
[2023-02-03 02:22:50] [git] job success    /home/USER /home/USER/.config/nvim/USER

... <git --no-optional ...> repeated several times

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions