Concealing tags with Markview #1638
toupeira
started this conversation in
Show and tell
Replies: 2 comments 4 replies
-
Oh damn this is so slick! I need to figure out how to do this in render-markdown or move plugins 😂 |
Beta Was this translation helpful? Give feedback.
2 replies
-
Here is the equivalent config for render-markdown.nvim ScreenshotConfigurationreturn {
'MeanderingProgrammer/render-markdown.nvim',
ft = { 'markdown', 'codecompanion' },
config = function ()
require('render-markdown').setup({
html = {
enabled = true,
tag = {
buf = { icon = ' ', highlight = 'CodeCompanionChatVariable' },
file = { icon = ' ', highlight = 'CodeCompanionChatVariable' },
help = { icon = ' ', highlight = 'CodeCompanionChatVariable' },
image = { icon = ' ', highlight = 'CodeCompanionChatVariable' },
symbols = { icon = ' ', highlight = 'CodeCompanionChatVariable' },
url = { icon = ' ', highlight = 'CodeCompanionChatVariable' },
var = { icon = ' ', highlight = 'CodeCompanionChatVariable' },
tool = { icon = ' ', highlight = 'CodeCompanionChatTool' },
user_prompt = { icon = ' ', highlight = 'CodeCompanionChatTool' },
group = { icon = ' ', highlight = 'CodeCompanionChatToolGroup' },
},
},
})
end,
} |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I wanted to share this configuration snippet to make the chat buffer look a bit nicer 😀
This is based on the examples at https://github.com/OXY2DEV/markview.nvim/wiki/HTML#container_elements
Screenshot
Configuration
I use a little helper function to keep it concise, but you can also inline it if you prefer:
Beta Was this translation helpful? Give feedback.
All reactions