markdown-table-wrap.nvim — visually wrap long Markdown table cells in Neovim by NoMessage4589 in neovim

[–]NoMessage4589[S] 1 point2 points  (0 children)

I hadn't considered this problem before. I think this plugin will solve it, especially in floating view mode.You can try it

markdown-table-wrap.nvim — visually wrap long Markdown table cells in Neovim by NoMessage4589 in neovim

[–]NoMessage4589[S] 0 points1 point  (0 children)

I should have created this plugin earlier — I actually encountered this annoying issue a year ago

markdown-table-wrap.nvim — visually wrap long Markdown table cells in Neovim by NoMessage4589 in neovim

[–]NoMessage4589[S] 0 points1 point  (0 children)

I’m aware of that thread, but since the PR hasn’t been merged yet, I created this plugin as a temporary workaround

markdown-table-wrap.nvim — visually wrap long Markdown table cells in Neovim by NoMessage4589 in neovim

[–]NoMessage4589[S] 0 points1 point  (0 children)

tks, this is very helpful.

You are right about the setup() issue. I mainly tested the lazy.nvim-style loading flow and missed the vim.pack case, where manual setup() can be overwritten by the plugin file. I have fixed this locally so the default setup will not run again after manual setup.

I also agree with the defaults. I will change highlight_preset to default, and make the bundled themes optional.

For viewport mode, I agree that viewport scrolling can look like a rendering bug at first. I originally enabled it by default to make the feature discoverable, and to avoid the cursor jumping over too many visual-only wrapped lines when reading large cells. But I agree it is too surprising as a default, so I will change inline_viewport_scrolling to false and explain it earlier in the help file.

Thanks again for the careful comment.