Emacs Sourcekit Lsp

Emacs LSP client for SourceKit-LSP (https://github.com/apple/sourcekit-lsp), a Swift/Objective-C/C++ language server created by Apple
Alternatives To Emacs Sourcekit Lsp
Project NameStarsDownloadsRepos Using ThisPackages Using ThisMost Recent CommitTotal ReleasesLatest ReleaseOpen IssuesLicenseLanguage
Swift Mode349
18 days ago7gpl-3.0Emacs Lisp
Emacs support for Apple's Swift programming language.
Lsp Sourcekit87
6 months ago7gpl-3.0Emacs Lisp
lsp-mode :heart: Apple's sourcekit
Emacs Sourcekit Lsp25
4 years agoEmacs Lisp
Emacs LSP client for SourceKit-LSP (https://github.com/apple/sourcekit-lsp), a Swift/Objective-C/C++ language server created by Apple
Lsp Sourcekit1
2 years agomitPython
Convenience plugin for Apple's SourceKit language server
Alternatives To Emacs Sourcekit Lsp
Select To Compare


Alternative Project Comparisons
Readme

emacs-sourcekit-lsp

emacs-sourcekit-lsp is a client for sourcekit-lsp, a Swift/C/C++/Objective-C language server created by Apple.

Uses lsp-mode, but it's also open to be extended with additions outside of the LSP protocol, like semantic highlighting, if the server supports that.

Screenshot

alt text

Quickstart

You need to download sourcekit-lsp and follow their repo instructions to build it using Swift Package Manager, for example.

After that, you need to download and install a custom development Swift toolchain from Swift.org website (in the future, Apple plans to make sourcekit-lsp work with Swift release toolchains).

Finally, add the following code to your init.el:

(require 'sourcekit-lsp)
(setenv "SOURCEKIT_TOOLCHAIN_PATH" "/Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2018-11-01-a.xctoolchain")
(setq sourcekit-lsp-executable (expand-file-name "<path_to_sourcekit-lsp_executable>"))

You can add sourcekit-lsp-swift-enable to your swift-mode hook and it will load sourcekit-lsp whenever you visit a .swift file.

MELPA

This package is not available on MELPA yet (but it's planned).

License

MIT

Popular Apple Projects
Popular Lsp Projects
Popular Companies Categories
Related Searches

Get A Weekly Email With Trending Projects For These Categories
No Spam. Unsubscribe easily at any time.
C Plus Plus
Swift
Language
Emacs Lisp
Emacs
Apple
Lsp
Melpa
Sourcekit