From: Siddharth Sharma via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
To: 70364@debbugs.gnu.org
Subject: bug#70364: Add YANG LSP support to eglot
Date: Fri, 12 Apr 2024 16:32:38 +0000 [thread overview]
Message-ID: <DB9PR07MB919790E4C9A8838385AEE7FAFE042@DB9PR07MB9197.eurprd07.prod.outlook.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 129 bytes --]
Hello,
This is a wish to add YANG LSP server based on https://github.com/TypeFox/yang-lsp support to eglot.
Regards,
Sid
[-- Attachment #2: 0001-Add-YANG-LSP-support-to-eglot.patch --]
[-- Type: application/octet-stream, Size: 1536 bytes --]
From 5b237232076406874a7a47a6bfa3ffd306d98709 Mon Sep 17 00:00:00 2001
From: Siddharth Sharma <siddharth.sharma@ericsson.com>
Date: Fri, 12 Apr 2024 18:11:58 +0200
Subject: [PATCH] Add YANG LSP support to eglot
Also added jsonc-mode association to json-language-server since
YANG LSP configuration file is of type JSON with Comments
Signed-off-by: Siddharth Sharma <siddharth.sharma@ericsson.com>
---
lisp/progmodes/eglot.el | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/lisp/progmodes/eglot.el b/lisp/progmodes/eglot.el
index f247c43203c..2eaf12c56e1 100644
--- a/lisp/progmodes/eglot.el
+++ b/lisp/progmodes/eglot.el
@@ -241,7 +241,7 @@ automatically)."
'("pylsp" "pyls" ("basedpyright-langserver" "--stdio")
("pyright-langserver" "--stdio")
"jedi-language-server" "ruff-lsp")))
- ((js-json-mode json-mode json-ts-mode)
+ ((js-json-mode json-mode json-ts-mode jsonc-mode)
. ,(eglot-alternatives '(("vscode-json-language-server" "--stdio")
("vscode-json-languageserver" "--stdio")
("json-languageserver" "--stdio"))))
@@ -301,6 +301,7 @@ automatically)."
(futhark-mode . ("futhark" "lsp"))
((lua-mode lua-ts-mode) . ,(eglot-alternatives
'("lua-language-server" "lua-lsp")))
+ (yang-mode . ("yang-language-server"))
(zig-mode . ("zls"))
((css-mode css-ts-mode)
. ,(eglot-alternatives '(("vscode-css-language-server" "--stdio")
--
2.43.2
next reply other threads:[~2024-04-12 16:32 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-04-12 16:32 Siddharth Sharma via Bug reports for GNU Emacs, the Swiss army knife of text editors [this message]
2024-04-18 10:38 ` bug#70364: Add YANG LSP support to eglot Eli Zaretskii
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=DB9PR07MB919790E4C9A8838385AEE7FAFE042@DB9PR07MB9197.eurprd07.prod.outlook.com \
--to=bug-gnu-emacs@gnu.org \
--cc=70364@debbugs.gnu.org \
--cc=siddharth.sharma@ericsson.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
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).