-
Notifications
You must be signed in to change notification settings - Fork 49
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
help: change wikilinks higlights (and code block icon colors) #205
Comments
## Details Request: #205 Add `link.wiki` config where users can specify icon and highlight group. Adds a `RenderMarkdownWikiLink` highlight which links to `RenderMarkdownLink` so nothing but the icon should change out of the box. Allow users to specify `code.highlight_language` which overrides the value from the icon provider. Minor other changes: - Remove logging of uncaptured groups, are no longer configurable - Refactor `markdown_inline` parser into separate renderers for inline code, links, and shortcuts - Change `render_modes` for `obsidian` preset to all modes, i.e. `true`
Added these as features here: 965c222. Use require('render-markdown').setup({
link = {
wiki = { icon = ' ', highlight = 'RenderMarkdownWikiLink' },
},
}) For the code language I still need some highlight in order to render these so I added require('render-markdown').setup({
code = {
highlight_language = 'LineNr',
},
}) |
Brilliant!
This is perfect. One minor question/request: is it possible to show the icon without the language name? i.e just the icon |
## Details Request: #205 Adds `code.language_name` argument which when false will not render the language name next to the icon. Defaults to true to keep current behavior unchanged.
Sure, added here: 18c7ef7 Set require('render-markdown').setup({
code = {
language_name = false,
},
}) |
Thank you! Feel free to close this issue. |
Neovim version (nvim -v)
NVIM v0.11.0-dev-959+g4b90952851
Neovim distribution
None
Description
Hi! I'm trying to change wikilink highlights but the following regex fails:
Any pointers?
Also is it possible to avoid having colors in code blocks icons? I.e I would like the

icon python
bit not to be in yellow in the following image:The text was updated successfully, but these errors were encountered: