Skip to content

feat: add status_icons configuration option#607

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

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

Conversation

@antinomie8
Copy link
Copy Markdown

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
@antinomie8
Copy link
Copy Markdown
Author

closes #532

dlyongemallo pushed a commit to dlyongemallo/diffview.nvim that referenced this pull request Feb 4, 2026
This was referenced Feb 12, 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