Closed
Description
Neovim version (nvim -v)
NVIM v0.11.0-dev-774+g3b54adc6c6
Neovim distribution
N/A
Operating system
Arch
Terminal emulator / GUI
Kitty
Describe the bug
If a buffer is loaded but the cursor is not inside the window the rendering doesn't actually happen. For instance in the GIF below I switch between different ChatGPT sessions and unless I actually get into the output window/buffer there is no rendering.
Similary I was wondering whether it was possible to have rendering in telescope preview buffer.
Expected behavior
Have rendering when the buffer/window is shown. Dunnno if this is problem with ChatGPT and telecope plugins per se.
Healthcheck output
render-markdown: require("render-markdown.health").check()
render-markdown.nvim [version] ~
- OK plugin 7.4.5
- OK neovim >= 0.10
render-markdown.nvim [configuration] ~
- OK valid
render-markdown.nvim [nvim-treesitter] ~
- OK installed
- OK markdown: parser installed
- OK markdown: highlight enabled
- OK markdown_inline: parser installed
- OK markdown_inline: highlight enabled
render-markdown.nvim [executables] ~
- OK none to check
render-markdown.nvim [conflicts] ~
- OK headlines: not installed
- OK obsidian: not installed
Plugin configuration
require('render-markdown').setup({
enabled = true,
file_types = { 'markdown', 'chatgpt', 'chatgpt-input' },
render_modes = true,
win_options = {
conceallevel = { rendered = 2 },
concealcursor = { rendered = 'nc' },
},
anti_conceal = {
-- Preserve glyphs in normal mode but make them "anti_conceal" in insert mode to
-- replicate concealcursor behaviour
ignore = {
bullet = { 'n' },
callout = { 'n' },
check_icon = { 'n' },
check_scope = { 'n' },
code_language = { 'n' },
dash = { 'n' },
head_icon = { 'n' },
link = { 'n' },
quote = { 'n' },
table_border = { 'n' },
},
},
dash = {
width = 80,
},
heading = {
sign = false,
icons = { '', '', '', '', '', '' },
position = 'inline',
},
bullet = {
icons = { '', '•', '', '-', '-' },
},
checkbox = {
unchecked = { icon = '' },
checked = { icon = '', scope_highlight = '@markup.strikethrough' },
custom = {
doing = {
raw = '[_]',
rendered = '',
highlight = 'RenderMarkdownDoing',
},
wontdo = {
raw = '[~]',
rendered = '',
highlight = 'RenderMarkdownWontdo',
},
},
},
code = {
sign = false,
width = 'block',
border = 'thick',
min_width = 80,
highlight_language = 'LineNr',
language_name = false,
},
quote = { icon = '▐' },
pipe_table = { cell = 'raw' },
link = {
wiki = { icon = ' ', highlight = 'RenderMarkdownWikiLink' },
},
latex = { enabled = false },
})
Plugin error log
-
Confirmations
- I have updated this plugin to the latest version using my plugin manager
- I have provided the text contained in all screenshots as raw text in this issue. This means if there is a screenshot below it is the copy pasted contents of the file in the screenshot. I understand that my issue will be closed if I have not.
Additional information
No response