ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

LSP-Source​Kit

by sublimelsp ST4 MacLinux

Convenience plugin for Apple's SourceKit language server

Details

Installs

  • Total 68
  • Win 0
  • Mac 66
  • Linux 2
Jul 25 Jul 24 Jul 23 Jul 22 Jul 21 Jul 20 Jul 19 Jul 18 Jul 17 Jul 16 Jul 15 Jul 14 Jul 13 Jul 12 Jul 11 Jul 10 Jul 9 Jul 8 Jul 7 Jul 6 Jul 5 Jul 4 Jul 3 Jul 2 Jul 1 Jun 30 Jun 29 Jun 28 Jun 27 Jun 26 Jun 25 Jun 24 Jun 23 Jun 22 Jun 21 Jun 20 Jun 19 Jun 18 Jun 17 Jun 16 Jun 15 Jun 14 Jun 13 Jun 12 Jun 11
Windows 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Mac 0 0 0 0 1 1 0 0 0 0 0 0 1 0 0 0 1 1 0 0 1 0 0 3 2 0 0 0 2 0 0 2 0 2 0 0 1 0 1 1 0 0 0 1 2
Linux 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

Readme

Source
raw.​githubusercontent.​com

LSP-SourceKit

This is a helper package that automatically configures Apple's SourceKit language server for you.

To use this package, you must have:

  • The LSP package.
  • For macOS: Xcode and/or its command-line tools; for Linux: Install sourcekit-lsp manually.
  • A Swift syntax if you want to use this server on Swift files. You may want to try Colin's Decent Swift Syntax.

Applicable Selectors

This language server operates on views with base scopes:

  • source.swift (Swift files)

Usage

SourceKit will expect either a compile_commands.json file at the root of your project, or a project built around the Swift Package Manager. In case of compile_commands.json, this file is usually generated by CMake with the command-line option -DCMAKE_EXPORT_COMPILE_COMMANDS=ON.

For Linux users: modify the "command" value in the settings to point to the sourcekit-lsp executable.

Installation Location

Nothing is installed. The plugin will use the language server bundled with Xcode on macOS.

Configuration

Configure SourceKit by running Preferences: LSP-SourceKit from the command palette.