reddit / emacs

lsp-mode + ccls, hide ref counts

26aintdead · 2022-02-17 05:06
Quick question, I recently started using lsp-mode with ccls as a language server and my buffers are cluttered with a counter for each variable showing how many time it's referenced in the code base. Is there a way to disable it? they're a bit annoying as every time I delete a line they don't go away instantly and clutter the buffer for a couple of seconds making it almost unusable. Screenshot for reference. Thanks! https://preview.redd.it/tgv2ytotsbi81.png?width=487&format=png&auto=webp&s=657868856a63d42dddd32222f566db15d0d4e3b6
yyoncho · 2022-02-17 05:54
Item 3 in this list https://emacs-lsp.github.io/lsp-mode/tutorials/how-to-turn-off/
coolvinay1903 · 2022-02-17 07:28
You would've probably enabled lsp code lens. Eval the following to disable the code lens. (setq lsp-lens-enable nil)
26aintdead · 2022-02-17 08:56
cool, thank you! I looked at that page dozen of times and didn't see it, it's even indicated with a number in the image!
26aintdead · 2022-02-17 08:57
it was on by default, not a bad feature per se btw, it's just the buggy behavior when you delete lines that makes it unbearable