Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Discussion options

I have nvim-tree/nvim-tree and nvim-tree/nvim-web-devicons plugins installed on my nvim lua based config. Git status icon does not appear. The status icon is usually located at the left handside of the file/folder.

Here is the snapshot that can show how It should look like if the icon appears:

git status- nvim tree

I dont't know why it does not work. I have set the option renderer = {icons = {glyphs = {git = {unstaged= "U", ...}}}} . Is there something wrong with this ?

Here is the packer manager file that contains all plugins. In case it might has something to do with the way I order the plugin most particularly the "nvim-tree/nvim-web-devicons" plugin.

packer.lua

vim.cmd([[packadd packer.nvim]])

return require("packer").startup(function(use)
    --[[ rest of the plugins ]]

    use({ --- lualine
        "nvim-lualine/lualine.nvim",
        requires = { "nvim-tree/nvim-web-devicons" },
    })

    use({ -- LSPSaga
        "glepnir/lspsaga.nvim",
        opt = true,
        branch = "main",
        event = "LspAttach",
        config = function()
            require("lspsaga").setup({})
        end,
        requires = {
            { "nvim-tree/nvim-web-devicons" },
            --Please make sure you install markdown and markdown_inline parser
            { "nvim-treesitter/nvim-treesitter" },
        },
    })

    --[[ rest of the plugins ]]
end)

Or There might be a conflict between nvim-tree plugin and other plugins. But I'm not sure where the problem is. Any Idea ?

You must be logged in to vote

Replies: 1 comment · 6 replies

Comment options

You haven't shown relevant nvim-tree setup configuration, or what it looks like when it doesn't work.

This works for me

  renderer = {
    icons = {
      git_placement = 'signcolumn',
      glyphs = {
        git = {
          unstaged = 'M',
          staged = 'S',
          unmerged = 'U',
          renamed = 'R',
          untracked = '?',
          deleted = 'D',
          ignored = 'I',
        },
      },
    },
  },
You must be logged in to vote
6 replies
@gegoune
Comment options

Can't replicate it, sorry. Please open new issue with reproducible minimal configuration and steps in nvim-tree repository as it seem unrelated to nvim-web-devicons (you are setting git glyphs to ascii characters).

@gegoune
Comment options

Also make sure you have proper font installed and configured correctly.

@reynaldlamury
Comment options

I've used NerdFont. I set some of the git status icon a text-based symbol such as for unstaged = "U", for renamed = "R" . But They still don't appear. It's weird, All the icons are showing up except the git symbol icon @gegoune

@reynaldlamury
Comment options

Sorry but I don't understand what you mean by 'create reproducible minimal configuration and steps in nvim-tree repository' ? Can you walk me through the steps ? @gegoune

@alex-courtis
Comment options

Please see Clean Room Replication

nvim-tree will use nvim-web-devicons

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
🙏
Q&A
Labels
None yet
3 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.