2
votes
Hide ifdef(or gray out) through compile_command.json
old but it may help someones. You need to use lsp token highligthing by setting this variable:
lsp-semantic-tokens-enable
to t.
1
vote
Accepted
Store output of xref-find-apropos in a variable within elisp code
We can ask for references from the LSP backend directly:
(lsp-request "workspace/symbol" `(:query ,symbol))
This returns a hashmap I can further parse and find locations by looking at 'uri' ...
1
vote
Store output of xref-find-apropos in a variable within elisp code
By inspecting the xref-find-apropos -> xref--find-xrefs -> xref--create-fetcher functions, we find that xref-backend-apropos is the working horse.
Calling that function with the appropriate ...
1
vote
Accepted
lsp mode does not recognize standard library
I solved the issue. It was not an emacs-ccls or lsp-mode issue but a clang issue. The issue started when I installed gcc-9 on Ubuntu-18.04 using the toolchain-r/test repo:
sudo add-apt-repository ppa:...
1
vote
Accepted
use .dir-locals.el to setup blacklist (based on projectile root) for ccls (c++mode server)
You were pretty close.
I imagine you want something like this?
((nil . ((eval . (progn
(require 'projectile)
(setq-local ccls-initialization-options
...
Only top scored, non community-wiki answers of a minimum length are eligible