Closed fredrikaverpil closed 7 months ago
Hi @fredrikaverpil ,
Thanks for this suggestion.
This PR allows to set the window config via
require('gen').win_config = { ... }
but it's not yet possible to modify the buffer options... let me think how to support this in the most generic way.
Best regards, David
As the output buffer is detected as filetype=markdown, I tried setting wrap on in ftplugin/markdown.lua
. It works fine if I first open some markdown file, but not if the first markdown is opened by gen. Maybe a distinct filetype would help with this, or figuring out why ftplugin is not triggered by gen?
This PR should fix this issue
Should be fixed!
Hey!
I can see this issue again in 9804316 I have an ftplugin for markdown with the following settings:
vim.opt_local.wrap = true
vim.opt_local.linebreak = true
vim.opt_local.breakindent = true
vim.opt_local.showbreak = '⋮ '
These settings get applied when I open any Markdown file, but not in the markdown buffer that :Gen
creates
https://github.com/David-Kunz/gen.nvim/assets/22574186/993f466e-6039-411a-b7b4-4d4dbc0570e3
Hi and thanks for this excellent plugin!
I noticed that the output of e.g.
:Gen Summarize
can produce one very long line:If I manually enabled word wrap, it becomes much more readable:
I think I would prefer to have this word wrapping "always on". Do you think it's possible to add an option to enable this?