aboutsummaryrefslogtreecommitdiffstats
path: root/lua/lspconfig/sourcekit.lua
blob: 85714311c31b1d1d091547fab0291acead6c3a17 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
local configs = require 'lspconfig/configs'
local util = require 'lspconfig/util'

configs.sourcekit = {
  default_config = {
    cmd = {"xcrun", "sourcekit-lsp"};
    filetypes = {"swift", "c", "cpp", "objective-c", "objective-cpp"};
    root_dir = util.root_pattern("Package.swift", ".git")
  };
  docs = {
    package_json = "https://raw.githubusercontent.com/apple/sourcekit-lsp/main/Editors/vscode/package.json";
    description = [[
https://github.com/apple/sourcekit-lsp

Language server for Swift and C/C++/Objective-C.
    ]];
    default_config = {
      root_dir = [[root_pattern("Package.swift", ".git")]];
    };
  };
};
-- vim:et ts=2 sw=2