Hi Everyone,
I’m new to Doom, and am migrating from VSCode. I’m really enjoying the keyboard-centric evil interface, but I’ve got one feature I haven’t been able to bring over yet - the highlighting of variable/symbol references in C code. Thanks for taking a look, and apologies if I missed anything!
What happened?
When opening a familiar C file, Variable references and calls to local and imported functions show up white instead of a distinct colour. clangd
is running and can be connected to.
Also tried installing treesitter since some others with this problem were told to.
What did you expect to happen?
I expected a result similar to the above VSCode screenshot, where function calls are highlighted in blue, variables in red (the specific colour doesn’t matter, just that it highlights them)
Steps to reproduce
- Install Doom Emacs
- Enable
lsp
and(cc +lsp)
ininit.el
- Add compiler config at end of config.el
- run
doom sync
- Install clangd (Fedora, so
dnf
) - Restart Doom, open a c file.
System information
Loading data dump...