Add swift config

This commit is contained in:
jdormit 2024-08-10 22:58:17 -04:00
parent 4b7e74afa5
commit 7c9f4475ce
2 changed files with 11 additions and 0 deletions

View File

@ -0,0 +1,10 @@
;; -*- lexical-binding: t; -*-
(use-package swift-mode
:mode "\\.swift\\'"
:config
(with-eval-after-load 'eglot
(add-to-list 'eglot-server-programs '(swift-mode . ("sourcekit-lsp")))
(add-hook 'swift-mode-hook 'eglot-ensure)))
(provide 'init-swift)

View File

@ -103,6 +103,7 @@
(require 'init-js)
(require 'init-ruby)
(require 'init-rust)
(require 'init-swift)
(require 'init-web)
(require 'init-markdown)
(require 'init-astro)