sublimelsp / LSP-SourceKit

Convenience plugin for Apple's SourceKit language server
MIT License
15 stars 1 forks source link

LSP-SourceKit

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

To use this package, you must have:

Applicable Selectors

This language server operates on views with base scopes:

Usage

[!NOTE] The server is disabled globaly by default, you should either override its global setting to "enabled": true, or run in command palette LSP: Enable language server in project to enable it on per-project basis.

SourceKit will expect either a compile_commands.json file at the root of your project, or a Package.swift file if 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.

Configuration

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