all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#60137: [PATCH] ; Put built-in modes first for eglot-server-programs
@ 2022-12-17  2:48 Randy Taylor
  2022-12-17 23:44 ` Yuan Fu
  2022-12-18  8:22 ` Yuan Fu
  0 siblings, 2 replies; 6+ messages in thread
From: Randy Taylor @ 2022-12-17  2:48 UTC (permalink / raw)
  To: 60137


[-- Attachment #1.1: Type: text/plain, Size: 24 bytes --]

Per Stefan's suggestion.

[-- Attachment #1.2: Type: text/html, Size: 460 bytes --]

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-Put-built-in-modes-first-for-eglot-server-programs.patch --]
[-- Type: text/x-patch; name=0001-Put-built-in-modes-first-for-eglot-server-programs.patch, Size: 3136 bytes --]

From a6b50cadc091f7d684331211bbe140bde3d42ffd Mon Sep 17 00:00:00 2001
From: Randy Taylor <dev@rjt.dev>
Date: Fri, 16 Dec 2022 21:32:40 -0500
Subject: [PATCH] ; Put built-in modes first for eglot-server-programs

* lisp/progmodes/eglot.el (eglot-server-programs): Put built-in modes first.
---
 lisp/progmodes/eglot.el | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/lisp/progmodes/eglot.el b/lisp/progmodes/eglot.el
index 20534cfa1c..a9dd794fa6 100644
--- a/lisp/progmodes/eglot.el
+++ b/lisp/progmodes/eglot.el
@@ -183,12 +183,12 @@ eglot-alternatives
                       finally (funcall err)))))))
 
 (defvar eglot-server-programs `((rust-mode . ,(eglot-alternatives '("rust-analyzer" "rls")))
-                                ((cmake-mode cmake-ts-mode) . ("cmake-language-server"))
+                                ((cmake-ts-mode cmake-mode) . ("cmake-language-server"))
                                 (vimrc-mode . ("vim-language-server" "--stdio"))
                                 ((python-mode python-ts-mode)
                                  . ,(eglot-alternatives
                                      '("pylsp" "pyls" ("pyright-langserver" "--stdio") "jedi-language-server")))
-                                ((js-json-mode json-mode json-ts-mode)
+                                ((js-json-mode json-ts-mode json-mode)
                                  . ,(eglot-alternatives '(("vscode-json-language-server" "--stdio")
                                                           ("json-languageserver" "--stdio"))))
                                 ((js-mode js-ts-mode tsx-ts-mode typescript-ts-mode typescript-mode)
@@ -211,7 +211,7 @@ eglot-server-programs
                                 (elm-mode . ("elm-language-server"))
                                 (mint-mode . ("mint" "ls"))
                                 (kotlin-mode . ("kotlin-language-server"))
-                                ((go-mode go-dot-mod-mode go-dot-work-mode go-ts-mode go-mod-ts-mode)
+                                ((go-ts-mode go-mod-ts-mode go-mode go-dot-mod-mode go-dot-work-mode)
                                  . ("gopls"))
                                 ((R-mode ess-r-mode) . ("R" "--slave" "-e"
                                                         "languageserver::run()"))
@@ -237,7 +237,7 @@ eglot-server-programs
                                  . ,(eglot-alternatives '(("vscode-css-language-server" "--stdio")
                                                           ("css-languageserver" "--stdio"))))
                                 (html-mode . ,(eglot-alternatives '(("vscode-html-language-server" "--stdio") ("html-languageserver" "--stdio"))))
-                                ((dockerfile-mode dockerfile-ts-mode) . ("docker-langserver" "--stdio"))
+                                ((dockerfile-ts-mode dockerfile-mode) . ("docker-langserver" "--stdio"))
                                 ((clojure-mode clojurescript-mode clojurec-mode)
                                  . ("clojure-lsp"))
                                 ((csharp-mode csharp-ts-mode)
-- 
2.39.0


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2022-12-18 18:46 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-12-17  2:48 bug#60137: [PATCH] ; Put built-in modes first for eglot-server-programs Randy Taylor
2022-12-17 23:44 ` Yuan Fu
2022-12-18  1:56   ` Randy Taylor
2022-12-18  4:13     ` João Távora
2022-12-18  8:22 ` Yuan Fu
2022-12-18 18:46   ` Randy Taylor

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.