Skip to content

feat: add status_icons configuration option#607

Open
anonymousgrasshopper wants to merge 1 commit intosindrets:mainfrom
anonymousgrasshopper:feat/status-icons-config-option
Open

feat: add status_icons configuration option#607
anonymousgrasshopper wants to merge 1 commit intosindrets:mainfrom
anonymousgrasshopper:feat/status-icons-config-option

Conversation

@anonymousgrasshopper
Copy link

Lets the user configure the git status icons displayed in the file tree.
I doubt the get_status_icon function has anything to do in hl.lua, perhaps it should be moved into another file.
It lets the user define custom icons for git status letters as such, for instance (nerd fonts):

status_icons = {
	["M"] = "", -- modified
	["T"] = "T", -- type
	["A"] = "", -- added
	["D"] = "󱟃", -- deleted
	["R"] = "", -- renamed
	["C"] = "", -- copied
	["U"] = "", -- updated but unmerged
	["X"] = "X", --
	["B"] = "B", --
	["?"] = "", -- untracked
	["!"] = "", -- ignored
}

Lets the user configure the git status icons displayed in the file tree
@anonymousgrasshopper
Copy link
Author

closes #532

dlyongemallo pushed a commit to dlyongemallo/diffview.nvim that referenced this pull request Feb 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant