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

return {
  default_config = {
    cmd = { 'sourcekit-lsp' },
    filetypes = { 'swift', 'c', 'cpp', 'objective-c', 'objective-cpp' },
    root_dir = util.root_pattern('Package.swift', 'buildServer.json', 'compile_commands.json', '.git'),
  },
  docs = {
    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")]],
    },
  },
}