This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-04-27
Channels
- # announcements (9)
- # aws (1)
- # aws-lambda (12)
- # babashka (18)
- # beginners (37)
- # calva (27)
- # clerk (15)
- # clojure (16)
- # clojure-conj (13)
- # clojure-europe (44)
- # clojure-germany (3)
- # clojure-norway (27)
- # clojure-uk (1)
- # cursive (6)
- # data-science (24)
- # datahike (7)
- # datomic (40)
- # fulcro (5)
- # hoplon (33)
- # hyperfiddle (9)
- # introduce-yourself (6)
- # jobs (1)
- # lsp (22)
- # nbb (2)
- # off-topic (15)
- # pathom (37)
- # pedestal (3)
- # polylith (7)
- # portal (1)
- # re-frame (7)
- # releases (1)
- # remote-jobs (1)
- # rewrite-clj (6)
- # sci (1)
- # scittle (1)
- # xtdb (7)
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
yeah, those are called lenses (or code lenses) as you guessed
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).
I know nothing about nvim, but have you checked out this https://neovim.io/doc/user/lsp.html#lsp-codelens?
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
does that suggestion help? https://github.com/AstroNvim/AstroNvim/issues/1814#issuecomment-1521881344
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.
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 😅
Right, hence im thinking the option could set after astro nvim has loaded. did you put the option in your init.lua?
you can also use :lua= vim.g.codelens_enabled
to get a better view of lua things
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.