[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Working with Eglot and QMK
From: |
Arsen Arsenović |
Subject: |
Re: Working with Eglot and QMK |
Date: |
Sun, 28 Jul 2024 15:55:16 +0200 |
Hi,
Hunter Jozwiak <hunter.t.joz@gmail.com> writes:
> Hello,
>
> What is the procedure for getting Eglot to work with my QMK fork? I was
> trying to set it up last night, but not really sure where to begin. To
> test, I opened up my keymap for the ZSA Moonlander I got recently and
> ran eglot, which seemed to open normally. Then, I went over to the
> layouts themselves and put point over the LAYOUT macro usage, where I
> then ran xref-find-definitions and got nothing defined for that
> identifier. A did a bit of digging and discovered the
> generate-compilation-database command for making a
> compile-commands.json which is supposed to fix these issues, but eglot
> doesn't seem to be using it after I generated it and restarted the
> LSP. Is there another step to get things working with clangd?
AFAIK, it should "Just Work" with clangd after you provide compile
commands:
https://docs.qmk.fm/cli_commands#qmk-generate-compilation-database
.. though, I have not tried.
--
Arsen Arsenović
signature.asc
Description: PGP signature