fix(swift): set-eglot-client!: extra argument
And move setter out of condition (it will no-op if :tools lsp +eglot isn't enabled). Plus, it should be configured even when +lsp isn't enabled for :lang swift. Amend: #7567 Close: #7577 Co-authored-by: ncihnegn <ncihnegn@users.noreply.github.com>
This commit is contained in:
parent
a89d4b7df5
commit
c7ddbe049f
1 changed files with 2 additions and 3 deletions
|
@ -2,11 +2,10 @@
|
||||||
|
|
||||||
(after! swift-mode
|
(after! swift-mode
|
||||||
(set-repl-handler! 'swift-mode #'run-swift)
|
(set-repl-handler! 'swift-mode #'run-swift)
|
||||||
|
(set-eglot-client! 'swift-mode '("sourcekit-lsp"))
|
||||||
|
|
||||||
(when (modulep! +lsp)
|
(when (modulep! +lsp)
|
||||||
(add-hook 'swift-mode-local-vars-hook #'lsp! 'append)
|
(add-hook 'swift-mode-local-vars-hook #'lsp! 'append))
|
||||||
(when (modulep! :tools lsp +eglot)
|
|
||||||
(set-eglot-client! swift-mode 'swift-mode '("sourcekit-lsp"))))
|
|
||||||
(when (modulep! +tree-sitter)
|
(when (modulep! +tree-sitter)
|
||||||
(add-hook 'swift-mode-local-vars-hook #'tree-sitter! 'append)))
|
(add-hook 'swift-mode-local-vars-hook #'tree-sitter! 'append)))
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue