Skip to content

Swift support? #910

Answered by woolsweater
konrad1977 asked this question in Q&A
Discussion options

You must be logged in to vote

There's some unfortunate naming confusion here. sourcekit-lsp is Apple's implementation of an LSP server, based on its SourceKit tool. lsp-sourcekit is an Emacs package that plugs the Apple LSP server into lsp-mode (another Emacs package).

If you are using Eglot, you do not need lsp-sourcekit. You just need to tell Eglot where the sourcekit-lsp binary is on your system. That's what your snippet does.

In some cases you might also want to pass some compiler flags. For example, when doing iOS development you might want to pass the iOS SDK. You can see one possible way to do this in my Emacs config. (Please feel free to use/adapt that code if you wish.)

As for the completion behavior, Apple's…

Replies: 7 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by joaotavora
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants
Converted from issue

This discussion was converted from issue #825 on April 02, 2022 21:03.