Skip to content

git submodule icons in nvim-tree #3038

Open
@adimail

Description

@adimail

It would be helpful to have a dedicated icon for Git submodules in the nvim-tree file explorer. Currently, while nvim-tree supports various Git status icons (e.g., staged, unstaged, untracked), there isn’t an option to display a unique icon for submodules.

This would improve the visual distinction of submodule folders and make it easier for users to identify them in the tree view.

Proposed Solution

Allow users to define a custom icon for Git submodules in the renderer.icons.git configuration. For example:

renderer = {
    -- other configurations...
    icons = {
        -- other icons...
        git = {
            -- existing git icons...
            submodule = '',  -- Git submodule icon
        },
    },
},

References

This feature idea was originally discussed here: Does nvim-tree have webicon for git submodules?.

Request

I’d appreciate guidance on how to proceed with implementing this feature.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions