lspsaga.nvim
lspsaga.nvim copied to clipboard
fix(hover) use lsp_markdown as syntax type
Try to fix #90. Only manually tested for clangd
, pyright
, and rust-analyzer
.
Okay after a bit testing, it seems to not be a great idea after all. There code examples with swift that isn't rendered with lsp_markdown like my custom syntax. Not sure if this is the fault of swift server or not but I like
vim.api.nvim_win_set_option(winid, 'conceallevel', 2)
vim.api.nvim_win_set_option(winid, 'concealcursor', 'n')
Okay our hover function is outdated a bit
builtin hover:
LspSaga hover:
don't mind the code line number not showing because I'm working on removing it :D
Here's for lua
builtin:
lspsaga:
There code examples with swift that isn't rendered with lsp_markdown like my custom syntax.
Do we have any custom syntax for markdown filetype in lspsaga to change the highlight of the content, or in your personal configuration?
Sorry, I'm not familiar with swift.
But when testing with lua, there exist some unnecessary horizontal lines between curly brackets.
Here is lspsaga:
This is builtin:
Maybe I should understand more code logic to figure out.
Yah, I use some syntax I hacked together last year and haven't released yet .... 🤔 I thought the horizontal line looked cool. I end-up rewriting window.lua, or rather updating it. The problem early was because the logic of current implementation couldn't parse the swift hover docs and usually that's the case when trying to parse large content.
Damn it, I fail to port vim.lsp.util.stylize_markdown
, .... tired like 3 times, till completely moving builtin hover and still doesn't work. Uhhh 2 hours no result 😭
Though, It is definitely a better and more decoupled version than fancy_floating_markdown. nice catch @againxx