swift-mode now loads the swift language server on macOS

This commit is contained in:
a. fox 2024-02-19 13:13:56 -05:00
parent 89bc7d9bd3
commit e3ecaeb86c
1 changed files with 10 additions and 1 deletions

View File

@ -824,8 +824,17 @@ What follows from here is loading and configuring the rest of my packages utiliz
:straight (:host github :repo "tslilc/siege-mode" :branch "master")
:hook ((programming-mode . siege-mode)))
(use-package lsp-sourcekit
:after lsp-mode
:ensure t
:when (macos-p)
:config
(setq lsp-sourcekit-executable (string-trim (shell-command-to-string "xcrun --find sourcekit-lsp"))))
(use-package swift-mode
:ensure t)
:ensure t
:hook (swift-mode . (lambda ()
(when-on-macos (lsp)))))
(use-package json-reformat
:ensure t)