Skip to content

Convenience plugin for Apple's SourceKit language server

License

Notifications You must be signed in to change notification settings

sublimelsp/LSP-SourceKit

Repository files navigation

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.
  • Swift toolchain. In case of macOS it comes with Xcode. In case of linux install correct variant for your distribution and make it available in system's $PATH.
  • A Swift-Next syntax.

Applicable Selectors

This language server operates on views with base scopes:

  • source.c (C files)
  • source.c++ (C++ files)
  • source.objc (Objective-C files)
  • source.objc++ (Objective-C++ files)
  • source.swift (Swift files)

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.

About

Convenience plugin for Apple's SourceKit language server

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages