Closed WindSoilder closed 4 months ago
Oops, mistake operation.
Thank you very much for your feedback. Please @skoowoo help confirm this issue.
I don't see what's unreadable about it ??? Explain that to me, please, thanks.
Sure! Take OneDark theme as example, when I enable inlay hint, it shows the type of x
variable clearly:
But in hardhacker theme, it doesn't show anything because of color I believe:
&str
here is something called virtual text, which is returned by language server, in case if you're interested, here is relative pr in neovim: https://github.com/neovim/neovim/pull/23984
Oh, I got it. Thank u, I will fix it.
BTW, I've managed to set a comment color for inlay hint text.
local on_attach = function(client, bufnr)
if client.server_capabilities.inlayHintProvider then
vim.api.nvim_set_hl(0, "LspInlayHint", { fg = "#938aad" })
nmap('<leader>ih', function() vim.lsp.inlay_hint(0, nil) end, "Toggle [I]nlay [H]int")
end
end
Here is how it looks like:
I copy relative setting from a youtube channel and another plugin. Sorry for that I'm not good at lua and vim plugin system, not really sure where should I put relative code. Just hope it can help.
BTW, I've managed to set a comment color for inlay hint text.
local on_attach = function(client, bufnr) if client.server_capabilities.inlayHintProvider then vim.api.nvim_set_hl(0, "LspInlayHint", { fg = "#938aad" }) nmap('<leader>ih', function() vim.lsp.inlay_hint(0, nil) end, "Toggle [I]nlay [H]int") end end
Here is how it looks like:
I copy relative setting from a youtube channel and another plugin. Sorry for that I'm not good at lua and vim plugin system, not really sure where should I put relative code. Just hope it can help.
Great, Thanks for you.
I learn your solution first and then integrate it .
Hi, I'm here again, after trying inlay hint feature from nightly neovim, I found that the hint text is unreadable
It'd be good if the color is readble to user