Skip to content

sublimelsp/LSP-SourceKit

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 

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.

About

Convenience plugin for Apple's SourceKit language server

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages