File tree 1 file changed +10
-2
lines changed
1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change 20
20
21
21
; ;; Commentary:
22
22
23
- ; ; client for astro-ls
23
+ ; ; LSP client for astro-ls
24
24
25
25
; ;; Code:
26
26
38
38
:group 'lsp-mode
39
39
:link '(url-link " https://github.com/withastro/language-tools" ))
40
40
41
+ (lsp-dependency 'astro-language-server
42
+ '(:system " astroserver" )
43
+ '(:npm :package " @astrojs/language-server"
44
+ :path " astroserver" ))
45
+
46
+
41
47
(lsp-register-client
42
48
(make-lsp-client :new-connection (lsp-stdio-connection '(" astro-ls" " --stdio" ))
43
49
:activation-fn (lsp-activate-on " astro" )
44
50
:initialization-options #'lsp-astro--get-initialization-options
45
- :server-id 'astro-ls ))
51
+ :server-id 'astro-ls
52
+ :download-server-fn (lambda (_client callback error-callback _update? )
53
+ (lsp-package-ensure 'astro-language-server callback error-callback))))
46
54
47
55
(lsp-consistency-check lsp-astro)
48
56
You can’t perform that action at this time.
0 commit comments