* Working with Eglot and QMK
@ 2024-07-26 19:11 Hunter Jozwiak
2024-07-28 6:32 ` Joel Reicher
2024-07-28 13:55 ` Arsen Arsenović
0 siblings, 2 replies; 4+ messages in thread
From: Hunter Jozwiak @ 2024-07-26 19:11 UTC (permalink / raw)
To: help-gnu-emacs
[-- Attachment #1.1: Type: text/plain, Size: 747 bytes --]
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?
Thanks,
Hunter
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 519 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Working with Eglot and QMK
2024-07-26 19:11 Working with Eglot and QMK Hunter Jozwiak
@ 2024-07-28 6:32 ` Joel Reicher
2024-07-28 8:35 ` Yuri Khan
2024-07-28 13:55 ` Arsen Arsenović
1 sibling, 1 reply; 4+ messages in thread
From: Joel Reicher @ 2024-07-28 6:32 UTC (permalink / raw)
To: Hunter Jozwiak; +Cc: help-gnu-emacs
Hunter Jozwiak <hunter.t.joz@gmail.com> writes:
> 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?
I might be missing something, but I can't tell what language you
are expecting support for here.
The clangd language server is for C/C++. Are you saying your
keymap is written in one of those languages?
Cheers,
- Joel
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Working with Eglot and QMK
2024-07-28 6:32 ` Joel Reicher
@ 2024-07-28 8:35 ` Yuri Khan
0 siblings, 0 replies; 4+ messages in thread
From: Yuri Khan @ 2024-07-28 8:35 UTC (permalink / raw)
To: Joel Reicher; +Cc: Hunter Jozwiak, help-gnu-emacs
On Sun, 28 Jul 2024 at 13:33, Joel Reicher <joel.reicher@gmail.com> wrote:
>
> Hunter Jozwiak <hunter.t.joz@gmail.com> writes:
>
> I might be missing something, but I can't tell what language you
> are expecting support for here.
The key word is QMK in the subject. QMK is a Free (GPLv2) keyboard
firmware allowing rich customization of the keyboard’s behavior.
It is written in C, but the user-facing configuration interface is
very preprocessor-macro-heavy, which may partially explain the
language server’s struggles the OP is experiencing.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Working with Eglot and QMK
2024-07-26 19:11 Working with Eglot and QMK Hunter Jozwiak
2024-07-28 6:32 ` Joel Reicher
@ 2024-07-28 13:55 ` Arsen Arsenović
1 sibling, 0 replies; 4+ messages in thread
From: Arsen Arsenović @ 2024-07-28 13:55 UTC (permalink / raw)
To: Hunter Jozwiak; +Cc: help-gnu-emacs
[-- Attachment #1: Type: text/plain, Size: 1029 bytes --]
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ć
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 381 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2024-07-28 13:55 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-26 19:11 Working with Eglot and QMK Hunter Jozwiak
2024-07-28 6:32 ` Joel Reicher
2024-07-28 8:35 ` Yuri Khan
2024-07-28 13:55 ` Arsen Arsenović
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).