Skip to content

Commit 8d08f05

Browse files
Merge pull request #345 from deadblackclover/add-defcustom-server-path
Added defcustom server path
2 parents d92a973 + fe8037f commit 8d08f05

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

eglot-fsharp.el

+6-1
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,11 @@
3636
:link '(url-link "https://github.com/fsharp/FsAutoComplete")
3737
:group 'eglot)
3838

39+
(defcustom eglot-fsharp-server-path "~/.dotnet/tools/"
40+
"Path to the location of FsAutoComplete."
41+
:group 'eglot-fsharp
42+
:risky t)
43+
3944
(defcustom eglot-fsharp-server-install-dir
4045
(locate-user-emacs-file "FsAutoComplete/")
4146
"Install directory for FsAutoComplete."
@@ -122,7 +127,7 @@
122127
"Return FsAutoComplete path."
123128
(let ((base (if eglot-fsharp-server-install-dir
124129
(concat eglot-fsharp-server-install-dir "netcore/")
125-
"~/.dotnet/tools/")))
130+
eglot-fsharp-server-path)))
126131
(expand-file-name (concat base "fsautocomplete" (if (eq system-type 'windows-nt) ".exe" "")))))
127132

128133
;; cache to prevent repetitive queries

0 commit comments

Comments
 (0)