From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?utf-8?Q?Arsen_Arsenovi=C4=87?= Newsgroups: gmane.emacs.help Subject: Re: Working with Eglot and QMK Date: Sun, 28 Jul 2024 15:55:16 +0200 Message-ID: <861q3dy62j.fsf@aarsen.me> References: <87ikws9df9.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11700"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org To: Hunter Jozwiak Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jul 28 15:56:02 2024 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1sY4NV-0002qt-WB for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 28 Jul 2024 15:56:02 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sY4N7-0001Nc-Cg; Sun, 28 Jul 2024 09:55:39 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sY4N1-0001N2-LE for help-gnu-emacs@gnu.org; Sun, 28 Jul 2024 09:55:31 -0400 Original-Received: from mout-p-102.mailbox.org ([80.241.56.152]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from ) id 1sY4Mz-0005Uu-N0 for help-gnu-emacs@gnu.org; Sun, 28 Jul 2024 09:55:31 -0400 Original-Received: from smtp202.mailbox.org (smtp202.mailbox.org [10.196.197.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-102.mailbox.org (Postfix) with ESMTPS id 4WX30T1CgBz9t2T; Sun, 28 Jul 2024 15:55:21 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aarsen.me; s=MBO0001; t=1722174921; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=p/syNBLCuBpkThlwKxRCM9NppyBq2RnHwKa9TuB3ms4=; b=Xh4aA2a49B413MpnRICp270aHwj4nMNMnzqF4YgdfBSwldts8J445w0vZs+LhyuAwjJNAi QEYV3Mit26MIao5SqA15CAn0GKaC1qsPztphWjinT0o8s0CuSvkFxaexsJGo6bVaDy/ros QTlZTtcP2L/a3zwRuU28zu8srS+6EByY/8xaah18j0WoHpEd92Rw8Lb2JJha6BR85nssc0 ScaIiD1QltJdJnYh2fnw0ZXayod0a87LlCfUJ6KTY4gFchGDF6v6/vN+Xcc/S5vRYHTpvY pqQPTzfUsUU83BnvbNPALS9sVantbCRQI7Y66JlyQiED1qMIXKNMVvBAsLyvGA== In-Reply-To: <87ikws9df9.fsf@gmail.com> (Hunter Jozwiak's message of "Fri, 26 Jul 2024 15:11:06 -0400") Received-SPF: pass client-ip=80.241.56.152; envelope-from=arsen@aarsen.me; helo=mout-p-102.mailbox.org X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:147413 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi, Hunter Jozwiak 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. =2D-=20 Arsen Arsenovi=C4=87 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iOYEARYKAI4WIQT+4rPRE/wAoxYtYGFSwpQwHqLEkwUCZqZNxF8UgAAAAAAuAChp c3N1ZXItZnByQG5vdGF0aW9ucy5vcGVucGdwLmZpZnRoaG9yc2VtYW4ubmV0RkVF MkIzRDExM0ZDMDBBMzE2MkQ2MDYxNTJDMjk0MzAxRUEyQzQ5MxAcYXJzZW5AYWFy c2VuLm1lAAoJEFLClDAeosST1MoA/R1fd6v1WhYADPeDVpUDRfElU/xdTYOAxfgb WMDwfbTaAP9JdzLju55JBo7LXdKon/EWg2qvNYQB59IW8WOlmgOuCQ== =aZTQ -----END PGP SIGNATURE----- --=-=-=--