Skip to content

Fix treesitter modes icons missing#109

Open
p1k0chu wants to merge 1 commit intoMstrodl:masterfrom
p1k0chu:fix-treesit-icons
Open

Fix treesitter modes icons missing#109
p1k0chu wants to merge 1 commit intoMstrodl:masterfrom
p1k0chu:fix-treesit-icons

Conversation

@p1k0chu
Copy link
Copy Markdown

@p1k0chu p1k0chu commented Feb 21, 2026

tree sitter modes, at least built-in ones, add the usual mode as an extra parent.

but the main parent is something else, like prog-mode or ruby-base-mode, so elcord fails to find an icon.

this change updates elcord--mode-icon to use derived-mode-all-parents to use all parents including extra ones, when looking for icon

use derived-mode-all-parents to get a list of all parents including
extra ones.

this allows all (sane) tree-sitter modes to resolve their icons correctly
@p1k0chu p1k0chu marked this pull request as draft February 21, 2026 12:53
@p1k0chu p1k0chu marked this pull request as ready for review February 21, 2026 12:53
@chrisemke
Copy link
Copy Markdown

would be nice to have treesit modes to this :)

@Mstrodl
Copy link
Copy Markdown
Owner

Mstrodl commented Apr 29, 2026

Sorry I let this sit for so long. I'll try and test this so I can merge it :)

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.

3 participants