lsp backed by ccls - no "expand macro" feature, broken "ref count" next to var/function name and "standard" types like double are not present when auto completing list is shown. reddit / emacs ---------------------------------------------------------------------- BaldSuperHare · 2022-02-09 04:31 Hi.I'm trying to recreate the overall emacs behavior I used to have before I've lost my .emacs file, and I would like to ask you for help. Edit: It is possible that I had some other packages installed than LSP related only, but I can't tell because I just copy pasted few configs together, without thinking too much about it and hoping that it would work. 1. I remember having this neat feature which (among others) would allow me to expand macro by clicking on some text stating "fix available" which would pop up in the buffer itself, and i can't get it to work. I do believe it had to do something with Flycheck package, but I might be wrong. 2. It's new feature, but very nice one: there is ref count displayed next to the function or variable declaration stating how many times this var/function has been referenced. However it does not seem to update "on the fly" and if I would delete said declaration the ref count stays where it was, or it concatenate itself with previous one (see pictures). There is another problem with this feature. These ref counters are supposed to be clickable, but when I do click them I'm getting an error :lsp-workspace-command-execute: ‘workspace/executeCommand’ with ‘ccls.xref’ failed.(wrong-type- argument json-value-p ccls\\.xref) 3. I have installed yasnippet, yet I don't have the auto completions (using company) for standard C types and keywords like double, float, for (worst of all, it gets auto completed to fork function), switch and others, and I remember that I have been able to get those auto completions before. 4. Edit: I've recently noticed that scrolling through file might cause loong freeze, while CPU usage skyrockets. I have not noticed it before, with my old config. [initial state](https://preview.redd.it/rnikqi0zgqg81.png?width=143&fo rmat=png&auto=webp&s=7175381acd634f268f7c6bb1645afbabb97f0cc6) [adding ref, yet no change in ref count](https://preview.redd.it/qp6ko k0zgqg81.png?width=156&format=png&auto=webp&s=f33054cb5c0277be48980bc5 333d89b933b6b232) [deleting all references](https://preview.redd.it/01hysj0zgqg81.png?wi dth=173&format=png&auto=webp&s=3f3cff5b80327ac998ea9dd8c7631a1829637a2 0) I have no idea what's I'm doing wrong here. If it changes something I'm using helm and ergoemacs-mode (everything installed from vanilla emacs) atm. I'd really appreciate help. Here is part of my init.el with lsp config: (use-package lsp-mode :commands (lsp lsp-deferred) :init (setq lsp-keymap-prefix "