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

configs.sourcekit = {
  default_config = {
    cmd = {"xcrun", "sourcekit-lsp"};
    filetypes = {"swift"};
    root_dir = util.root_pattern("Package.swift", ".git")
  };
  -- on_new_config = function(new_config) end;
  -- on_attach = function(client, bufnr) end;
  docs = {
    package_json = "https://raw.githubusercontent.com/apple/sourcekit-lsp/master/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