Replies: 1 comment
-
I got an answer from the render-markdown dev. By default, it ignores render_modes for buftype = nofile, so I had to add an explicity filetype override. I changed my configuration to this, and it works now {
'MeanderingProgrammer/render-markdown.nvim', -- Enhanced markdown rendering
dependencies = { 'nvim-treesitter/nvim-treesitter', 'nvim-tree/nvim-web-devicons' },
ft = { "markdown", "codecompanion" },
opts = {
render_modes = { 'n', 'c', 'v' },
overrides = {
filetype = {
codecompanion = {
render_modes = { 'n', 'c', 'v' },
},
},
},
},
}, |
Beta Was this translation helpful? Give feedback.
0 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 opened this bug on render-markdown, but wanted to ask here as well.
MeanderingProgrammer/render-markdown.nvim#426
Basically, if I have codecompanion listed in the filetypes for render-markdown, it always renders, whether I'm in insert or normal mode.
What I'd like is to see rendered markdown in normal mode (when I'm reading) but not when I'm in insert mode (i.e., editing, and seeing things like ``` is useful).
My config is:
Beta Was this translation helpful? Give feedback.
All reactions