Skip to content

Commit f61671b

Browse files
authored
Configurable nimlsp executable (#4075)
* [fix] nimlsp typo * [nim] configurable nimlsp executable like nimlangserver
1 parent a62fb20 commit f61671b

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

clients/lsp-nim.el

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,11 +77,18 @@
7777
:group 'lsp-nim
7878
:package-version '(lsp-mode . "8.0.1"))
7979

80+
(defcustom lsp-nim-lsp "nimlsp"
81+
"Path to `nimlsp'"
82+
:type 'number
83+
:group 'lsp-nim
84+
:package-version '(lsp-mode . "8.0.1"))
85+
8086
(lsp-register-client
81-
(make-lsp-client :new-connection (lsp-stdio-connection "nimlsp")
87+
(make-lsp-client :new-connection (lsp-stdio-connection
88+
(lambda () lsp-nim-lsp))
8289
:activation-fn (lsp-activate-on "nim")
8390
:priority -1
84-
:server-id 'nimls))
91+
:server-id 'nimlsp))
8592

8693
(lsp-register-client
8794
(make-lsp-client :new-connection (lsp-stdio-connection

0 commit comments

Comments
 (0)