Add swift config
This commit is contained in:
parent
4b7e74afa5
commit
7c9f4475ce
10
emacs/.emacs.d/config/init-swift.el
Normal file
10
emacs/.emacs.d/config/init-swift.el
Normal 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)
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user