]> git.eshelyaron.com Git - emacs.git/commitdiff
Add new Go modes to eglot-server-programs
authorDavide Masserut <dm@mssdvd.com>
Sun, 13 Nov 2022 11:30:43 +0000 (12:30 +0100)
committerStefan Kangas <stefankangas@gmail.com>
Sun, 13 Nov 2022 13:40:45 +0000 (14:40 +0100)
* lisp/progmodes/eglot.el (eglot-server-programs): Add new major modes
for Go to be used with gopls.  (Bug#59245)

lisp/progmodes/eglot.el

index 97c674f7aa9dd7d7461675176e80060df0a0b047..98d5281d2c398525c9cd5cc5f395095533434aa9 100644 (file)
@@ -206,7 +206,7 @@ language-server/bin/php-language-server.php"))
                                 (elm-mode . ("elm-language-server"))
                                 (mint-mode . ("mint" "ls"))
                                 (kotlin-mode . ("kotlin-language-server"))
-                                (go-mode . ("gopls"))
+                                ((go-mode go-dot-mod-mode go-dot-work-mode) . ("gopls"))
                                 ((R-mode ess-r-mode) . ("R" "--slave" "-e"
                                                         "languageserver::run()"))
                                 (java-mode . ("jdtls"))