company-mode completion for Swift projects via SourceKit with the help of SourceKittenDaemon.
*.xcodeproj
up the directory tree.curl
on your machineFirst install SourceKittenDaemon. Make sure that it's in
the exec-path
of your Emacs.
And then you can install company-sourcekit
in the following ways:
M-x package-install <RET> company-sourcekit <RET>
Make sure this repository is in your load-path
, and then:
(require 'company-sourcekit)
(add-to-list 'company-backends 'company-sourcekit)
company-sourcekit-use-yasnippet
- Use yasnippet for completion expansion. By default this is enabled if yasnippet is detected.company-sourcekit-verbose
- Log company-related messages to *messages*
with verbositysourcekit-available-ports
- A list of ports that sourcekittendaemon
is allowed to listen on.sourcekit-sourcekittendaemon-executable
- Location of the sourcekittendaemon
executablesourcekit-curl-executable
- Location of the curl
executablesourcekit-verbose
- Log sourcekittendaemon-related messages to *messages*
with verbosity.xcodeproj
file and determine the best configuration options to pass to sourcekit.Is most welcome. Please use a feature branch and format your code with
indent-region
d(^.^)b