From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Augusto Stoffel Newsgroups: gmane.emacs.devel Subject: Re: Explain a bit more on how to configure language server in Eglot's manual Date: Wed, 08 Mar 2023 14:27:51 +0100 Message-ID: <87r0tz8jag.fsf_-_@gmail.com> References: <86sfeisu49.fsf@stephe-leake.org> <87356gvkkb.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23122"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Yuan Fu , Stephen Leake , Emacs developers To: =?utf-8?B?Sm/Do28gVMOhdm9yYQ==?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Mar 08 14:29:01 2023 Return-path: Envelope-to: ged-emacs-devel@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 1pZtqn-0005la-6W for ged-emacs-devel@m.gmane-mx.org; Wed, 08 Mar 2023 14:29:01 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pZtpo-00010o-CO; Wed, 08 Mar 2023 08:28:00 -0500 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 1pZtpm-00010M-RK for emacs-devel@gnu.org; Wed, 08 Mar 2023 08:27:58 -0500 Original-Received: from mail-ed1-x52f.google.com ([2a00:1450:4864:20::52f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pZtpl-0005mz-5q for emacs-devel@gnu.org; Wed, 08 Mar 2023 08:27:58 -0500 Original-Received: by mail-ed1-x52f.google.com with SMTP id cy23so65564176edb.12 for ; Wed, 08 Mar 2023 05:27:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1678282074; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=OjFRhNxicOpbX3j/eCJxmW55AtBm3Ck+BcPUK9k7u+0=; b=YiXitOq74nWLVbpCrFsKxayLsjhUyitwkl35tvLQ8BGAS64QfNfqudseaqKnXx3xoT 5+ciJ8kSOJOaQaG8vlgNqowS8kSH94gOrK07bDGDgoFKQgoXRqEjECfryYIA4OXybUKx TuTxKFSWvmbYNljNCEgDl7sdag0/G/aEe4WsD1Gbb0e8BJeoMwOzMMCVFogaWRn5NCx0 38K1iC2TjjzAVbpcry+oE44bFRNhGjmWr7BPYu4XMY8uW8ah14ayQpzMO4eekw1q0aF/ 9QdEV1Fl6XpvtV0uyrWNZduN1hFwGVWoKQw80ywRbCk1SZqPz53/GrSzE1+XQduECGwm h0RQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678282074; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=OjFRhNxicOpbX3j/eCJxmW55AtBm3Ck+BcPUK9k7u+0=; b=0gvYrsjYCimgrypLYFViYI5bGOXdD0w6B2EJtXoe8wisnc9rtfe4KGAT2KJjUwnF4r D9wJo5cLO7fOXpmxbElB7g1SdzUQGSQA3KVUf5gXHn4RtU1/bT5iF2Xm6HPXrDEcSspG T8y8GQdY42eEVuexYV7RaRIGZxnOPQkpYH1159eTfkaZtgD/s4OR/W2G6HyFpA5w0Urd suhH1gCHT4CBDEXynCll+q2DmJXfWqcEi95RhAoFGWZC5u1eDa1qjr2J3r6grdFtSxjD Qk5cBq5wq0ylYwSpQHgHWnSkT32bQHJ+rgvMt9c454MStZPeEWtZbH0uiFxXH3ckOWel LIWw== X-Gm-Message-State: AO0yUKUr1OCTtXVvX3xXaHsQbvFr16W8rYMXQ9go4CxsHOWQw59//g8o /TS/m7qnXKY2oAvwZHiQfcEyhTlJI15c1Q== X-Google-Smtp-Source: AK7set/Iex8Xw2K0VULX52wgS+u/+G+2nI9586O0o8PIEXInNy71B88cjS1oIBcvOXKSqcCHZLEUow== X-Received: by 2002:a17:907:a44:b0:8b1:29ed:e206 with SMTP id be4-20020a1709070a4400b008b129ede206mr23502121ejc.28.1678282074429; Wed, 08 Mar 2023 05:27:54 -0800 (PST) Original-Received: from ars3 ([2a02:8109:8ac0:56d0::8b3a]) by smtp.gmail.com with ESMTPSA id l10-20020a1709060e0a00b008b1815e30e3sm7473304eji.117.2023.03.08.05.27.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Mar 2023 05:27:53 -0800 (PST) In-Reply-To: <87356gvkkb.fsf@gmail.com> (=?utf-8?Q?=22Jo=C3=A3o_T=C3=A1vor?= =?utf-8?Q?a=22's?= message of "Tue, 07 Mar 2023 11:59:32 +0000") Received-SPF: pass client-ip=2a00:1450:4864:20::52f; envelope-from=arstoffel@gmail.com; helo=mail-ed1-x52f.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:304126 Archived-At: In the meanwhile I've discovered that many servers have a configuration schema available _somewhere_. For example, pylsp has it here: https://raw.githubusercontent.com/python-lsp/python-lsp-server/develop/py= lsp/config/schema.json and this discussion mentions others: https://github.com/williamboman/nvim-lsp-installer/discussions/575 So if the difficulty of gathering these data is overcome, Eglot could do something actually helpful and show a listing with the types and documentation of the options (whatever the specifics look like). Of course there isn't a no-code way for Eglot to provide such a feature. But one starting point would be to have generic a widget screen to edit a structure specified by a JSON schema. This shouldn't be too hard to do. On Tue, 7 Mar 2023 at 11:59, Jo=C3=A3o T=C3=A1vora wrote: > The dotted-to-plist translator proposed is optional. Some people > requested use of dotted notation and that will surely need a > translator. I wouldn't use it. Given how selective you are with the features you want to add, I don't understand why you think this particular one should make it in. It would sure help a little, maybe, sometimes.