https://github.com/rechsteiner/swift-ts-mode
Tree-sitter based major-mode for Swift in Emacs, with support for font-locking, imenu and indentation.
https://github.com/rechsteiner/swift-ts-mode
emacs swift tree-sitter
Last synced: 3 months ago
JSON representation
Tree-sitter based major-mode for Swift in Emacs, with support for font-locking, imenu and indentation.
- Host: GitHub
- URL: https://github.com/rechsteiner/swift-ts-mode
- Owner: rechsteiner
- License: gpl-3.0
- Created: 2023-11-26T18:47:16.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-01-15T19:09:39.000Z (6 months ago)
- Last Synced: 2025-04-13T18:01:32.216Z (3 months ago)
- Topics: emacs, swift, tree-sitter
- Language: Emacs Lisp
- Homepage:
- Size: 73.2 KB
- Stars: 11
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# swift-ts-mode
[](https://www.gnu.org/licenses/gpl-3.0)
[](https://melpa.org/#/swift-ts-mode)A tree-sitter based major-mode for [Swift](https://swift.org), with support for font-locking, imenu and indentation.
Compatible with the following [tree-sitter-swift](https://github.com/alex-pinkus/tree-sitter-swift) grammar.
## Installing
This package is available on [Melpa](https://melpa.org/#/swift-ts-mode):
```
(use-package swift-ts-mode
:ensure t)
```For manual installation:
```
(load "path/to/swift-ts-mode.el")
```## Requirements
- Emacs 29.1 or above with tree-sitter support (see [tree-sitter starter guide](https://git.savannah.gnu.org/cgit/emacs.git/tree/admin/notes/tree-sitter/starter-guide?h=emacs-29))
- Tree-sitter grammar: [github.com/alex-pinkus/tree-sitter-swift](https://github.com/alex-pinkus/tree-sitter-swift)