Skip to content
This repository was archived by the owner on Jul 31, 2023. It is now read-only.

Commit 62a9a84

Browse files
Update README with executable server installation instructions
1 parent 932a49b commit 62a9a84

File tree

1 file changed

+26
-11
lines changed

1 file changed

+26
-11
lines changed

README.org

+26-11
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,32 @@ lsp-mode client leveraging microsoft's [[https://github.com/Microsoft/python-lan
1010
dotnet build -c Release
1111
#+END_SRC
1212

13-
Include ~lsp-python-ms~ in your config in your preferred manner. A
14-
minimal ~use-package~ initialization might be:
15-
16-
#+BEGIN_SRC elisp
17-
(use-package lsp-python-ms
18-
:ensure nil
19-
:hook (python-mode . lsp-python-enable)
20-
:config
21-
(setq lsp-python-ms-dir
22-
(expand-file-name "~/python-language-server/output/bin/Release/")))
23-
#+END_SRC
13+
If you choose, compile the language server to a single executable
14+
with one of:
15+
#+BEGIN_SRC bash
16+
dotnet publish -c Release -r osx-x64 # mac
17+
ln -sf $(git rev-parse --show-toplevel)/output/bin/Release/osx-x64/publish/Microsoft.Python.LanguageServer ~/.local/bin/ # or whereever you put your executables
18+
#+END_SRC
19+
#+BEGIN_SRC bash
20+
dotnet publish -c Release -r win10-x64 # windows 10
21+
#+END_SRC
22+
23+
3. Include ~lsp-python-ms~ in your config in your preferred manner. A
24+
minimal ~use-package~ initialization might be:
25+
26+
#+BEGIN_SRC elisp
27+
(use-package lsp-python-ms
28+
:ensure nil
29+
:hook (python-mode . lsp-python-enable)
30+
:config
31+
32+
;; for dev build of language server
33+
(setq lsp-python-ms-dir
34+
(expand-file-name "~/python-language-server/output/bin/Release/"))
35+
;; for executable of language server
36+
(setq lsp-python-ms-executable
37+
"~/python-language-server/output/bin/Release/osx-x64/publish/Microsoft.Python.LanguageServer"))
38+
#+END_SRC
2439

2540
* Credit
2641

0 commit comments

Comments
 (0)