mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-24 09:40:06 +08:00
22 lines
629 B
Lua
22 lines
629 B
Lua
local configs = require 'lspconfig/configs'
|
|
local util = require 'lspconfig/util'
|
|
|
|
configs.sourcekit = {
|
|
default_config = {
|
|
cmd = { '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")]],
|
|
},
|
|
},
|
|
}
|