-
Notifications
You must be signed in to change notification settings - Fork 51
feature: add custom icons for html like files in codecompanion #336
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
## Details Request: #336 By default no tags are configured so nothing happens. If matching tags are found the start & end tags get concealed and the configured icon / highlight are inlined at the start. Example configuration: ```lua require('render-markdown').setup({ html = { tag = { file = { icon = ' ', highlight = 'Normal' }, }, }, }) ```
Added here: 6d446de You can configure something like: require('render-markdown').setup({
html = {
tag = {
file = { icon = ' ', highlight = 'Normal' },
},
},
}) To modify the You can do something similar for The value for |
Hi @MeanderingProgrammer! Sorry for the terribly late reply. Mmm from what I reckon the codecompanion chat doesn't render those overrides = {
filetype = {
codecompanion = {
regex = {
custom = {
file_tag = {
pattern = '<file_tag_regex>',
icon = 'some_icon ',
background = 'some_hl',
},
},
},
},
},
} |
This just comes from The only thing you need to make this work is to have the |
Is your feature request related to a problem? Please describe.
When adding files to the chat buffer in codecompanion they look like this:
Describe the solution you'd like
I was wondering whether it was possible to replace the
<file>...</file>
,<buf>...</buf>
and<url>...</url>
with some fancy icons.Describe alternatives you've considered
Additional information
No response
The text was updated successfully, but these errors were encountered: