GithubHelp home page GithubHelp logo

silverkt / company-sourcekit Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nathankot/company-sourcekit

0.0 2.0 0.0 432 KB

Completion for Swift projects via SourceKit with the help of SourceKitten

Emacs Lisp 100.00%

company-sourcekit's Introduction

company-sourcekit

Melpa Status

company-mode completion for Swift projects via SourceKit with the help of SourceKittenDaemon.

Limitations

  • Only works when there is a *.xcodeproj up the directory tree.
  • OSX-only, since this communicates with SourceKit which only runs on OSX (AFAIK)
  • You need to have curl on your machine

Installation

First 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:

MELPA

M-x package-install <RET> company-sourcekit <RET>

Source

Make sure this repository is in your load-path, and then:

(require 'company-sourcekit)
(add-to-list 'company-backends 'company-sourcekit)

Configuration

  • 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 verbosity
  • sourcekit-available-ports - A list of ports that sourcekittendaemon is allowed to listen on.
  • sourcekit-sourcekittendaemon-executable - Location of the sourcekittendaemon executable
  • sourcekit-curl-executable - Location of the curl executable
  • sourcekit-verbose - Log sourcekittendaemon-related messages to *messages* with verbosity

How it works

  • company-sourcekit communicates with sourcekittendaemon via HTTP.
  • Which in turn communicates with SourceKit using the sourcekitten framework.
  • sourcekittendaemon will read your .xcodeproj file and determine the best configuration options to pass to sourcekit.

Credits

Contributing

Is most welcome. Please use a feature branch and format your code with indent-region d(^.^)b

company-sourcekit's People

Contributors

nathankot avatar syohex avatar terhechte avatar

Watchers

James Cloos avatar Silver.Sun avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.