Closed TheBlueFireFox closed 10 months ago
Hi :wave:
Thanks for the nice words :smile:
I think what you're seeing are code lenses, not inlay hints. Afaik, haskell-language-server
doesn't support inlay hints yet: https://github.com/haskell/haskell-language-server/issues/2938
I'm not sure why you're seeing them twice, but you can disable codeLens
auto-refresh in haskell-tools with
vim.g.haskell_tools = {
tools = {
codeLens = {
autoRefresh = false,
},
},
}
Hello. Thank you very much for the fast answer. This seems to be working for some projects. And in others it completely deactivates the code lenses.
For me it is good enough and as such I am once again want to thank you for your hard work.
Hmm, it sounds like it may be conflicting with another plugin. Which plugins do you have installed?
Or another question: Do the duplicate code lenses disappear when the inlay hints plugin is disabled?
Hallo again
@mrcjkb For the first question I have a few plugins installed the one that I think might be the conflicting one is the (lvimuser/lsp-inlayhints.nvim). For the others I'd have to do some detective work (please tell me what I should search for If so required). (here is my config assuming you'd need it.) About the second yes the duplicate code lenses do disapear when I deactivate the inlay hints plugin.
As always thank you very much for your help. <3
Please tell me if I can help with anything.
I tried to reproduce it using a minimal config based on yours (see README.md#troubleshooting), but couldn't.
I also noticed you have the following in your config:
vim.g.haskell_tools = {
hls = {
tools = {
inlay_hints = { auto = true },
},
capabilities = require("cmp_nvim_lsp").default_capabilities(),
},
}
There's no tools.inlay_hints
setting, and the haskell-tools plugin will automatically add cmp_nvim_lsp
capabilities if it detects the plugin. So you can remove the init
function from your config.
I doubt that's what's causing the issue though...
First sorry for the old config state. (I have already removed it locally, but forgot to update it online...)
Secondly I think we can simple close this issue... I am probably the only one who has this issue given my weird setup and I am fine with your solution above to just deactivate the autoreload for the codeLens.
Either way I once again want to thank you for all your effort in both my issue and also the general plugin.
Alright, I'll close this for now :smile:
By the way, it looks like inlay hints will be supported natively in neovim 0.10: https://github.com/neovim/neovim/pull/23984
Feature description
1) Love the plugin, so thanks for writing and maintining it. 2) Can you add a way to disable the inlay hints? In my setup it clashes with a different plugin (lvimuser/lsp-inlayhints.nvim) and then writes them twice.
Thanks
fyi I am using 2.x.x