;; -*- 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)