Skip to content
Discussion options

You must be logged in to vote

You can achieve it by overriding the Entity:icon() method. Add the following to your init.lua:

local old_entity_icon = Entity.icon
function Entity:icon()
  if self._file.url == Url(os.getenv("HOME")) then
    return ui.Line(" [icon] ")
  end
  return old_entity_icon(self)
end

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@fdnt7
Comment options

@lpnh
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by fdnt7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
1. Q&A
Labels
None yet
3 participants