A tree-sitter based major-mode for Swift, with support for font-locking, imenu and indentation. Compatible with the following tree-sitter-swift grammar.
This package is available on Melpa:
(use-package swift-ts-mode
:ensure t)
For manual installation:
(load "path/to/swift-ts-mode.el")
- Emacs 29.1 or above with tree-sitter support (see tree-sitter starter guide)
- Tree-sitter grammar: github.com/alex-pinkus/tree-sitter-swift