coq_nvim
coq_nvim copied to clipboard
Feature Request: Stylize Preview
Hi there, kudos to an impressive project :)
One thing I'm missing from nvim-cmp is that the preview is processed via vim.lsp.util.stylize_markdown (concealed, etc.). Would you consider adding this?
As a reference, nvim-cmp does it here and this was the original PR to nvim-compe.
Thanks in advance!
honestly?
i've thought about it before and i thought i'd wait for treesitter to add markdown.
but thats not coming anytime soon so... maybe? haha, this is definitely one of those things once added, people will endlessly complain about if you remove it and tell them to use something else better though.
i am not a huge fan of the stylize_markdown implementation, since its not a true markdown parser, i know it works pretty well, but like it irks me a bit.
if i wanted to, i could just ship coq with a markdown parser + highlighter, and parse the html output into nvim highlight groups... the hard way, and just get better highlighting than anything lua based
It seems just adding conceallevel=2 and concealcursor=nvic to the preview window enables some concealing. It doesn't conceal HTML entities though. Syntax file for lsp_markdown conceals more things, including HTML entities, but maybe it cannot be applied to the whole preview buffer?
I am honestly not a fan of the conseal approach, on some LSPs it messes things up bigly.
maybe ill just parse it myself, its not very difficult just super tedious
anyways the plan for me is to touch grass for a bit so thats not coming until later, since its a not really a big obstacle to usability
Hello :) Do you think there's a way to provide preview from elsewhere in order to stylize it better? It's kind of a dealbreaker for me, as I often explore new codebases, looking at possible completions and their documentation is a good way to learn while coding.
Anyway, it's a great plugin! Thank you so much for Your work!