Skip to content

Commit 8a266b8

Browse files
authored
lsp-python-py: make it add-on and activated on python (#4786)
1 parent b3b5487 commit 8a266b8

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

clients/lsp-python-ty.el

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,11 @@
3838
:type '(repeat string))
3939

4040
(lsp-register-client
41-
(make-lsp-client :new-connection (lsp-stdio-connection lsp-python-ty-clients-server-command)
42-
:major-modes '(python-mode)
43-
:server-id 'lsp-python-ty))
44-
41+
(make-lsp-client :new-connection (lsp-stdio-connection (lambda () lsp-python-ty-clients-server-command))
42+
:activation-fn (lsp-activate-on "python")
43+
:priority -1
44+
:add-on? t
45+
:server-id 'ty-ls))
4546

4647
(lsp-consistency-check lsp-python-ty)
4748

0 commit comments

Comments
 (0)