Fork me on GitHub
#lsp
<
2023-04-27
>
Ory Band11:04:03

hi, when using nvim, how can i disable the "X references" hover text? i opened a ticket in the nvim distribution i'm using which mentioned it might be a codelens thing, but i can't figure out how to disable it https://github.com/AstroNvim/AstroNvim/issues/1814

lassemaatta12:04:34

yeah, those are called lenses (or code lenses) as you guessed

Ory Band12:04:01

how can i disable them? they just started popping up after an update

lassemaatta12:04:53

that's a good question. The answer will most likely be some nvim configuration setting (of which I know nothing about) as I don't believe clojure-lsp has any flags for disabling that (which I guess makes sense as that's a client feature).

lassemaatta12:04:00

I know nothing about nvim, but have you checked out this https://neovim.io/doc/user/lsp.html#lsp-codelens?

ericdallo12:04:51

This should be configurable in the client indeed, it's code lens capability that should be set to true or false, not sure how to do it in nvim

lispyclouds12:04:54

https://github.com/AstroNvim/AstroNvim/blob/main/lua/astronvim/options.lua#L56 is where the distribution seems to set it, so using the suggestion should fix it.

gratitude 2
Ory Band13:04:52

doesn't work 😕

lispyclouds13:04:03

Where have you put the change in? It could be that astronvim loads before the setting is set. I’m no expert in Astro as well 😅

Ory Band13:04:35

how can i check for vim.g options in : ?

Ory Band13:04:45

i want to see the value for vim.g.codelens_enabled

Ory Band13:04:13

:let g:codelens_enabled
g:codelens_enabled     v:false

Ory Band13:04:27

it's false, but still seeing the "references" virtual text

lispyclouds13:04:44

Right, hence im thinking the option could set after astro nvim has loaded. did you put the option in your init.lua?

lispyclouds13:04:23

you can also use :lua= vim.g.codelens_enabled to get a better view of lua things

Ory Band13:04:55

thanks, still:

:lua= vim.g.codelens_enabled
false

Ory Band13:04:59

which means i set it right and still not working

lispyclouds13:04:37

Yeah probably an Astro related thing then. There’s something with the order in which it’s picking up. Definitely nothing to do with lsp.

Ory Band13:04:07

thanks for assistance!

2
Ory Band13:04:00

they just uploaded a fix 7m ago 🙂 fixed