1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-03 20:00:06 +08:00
SpaceVim/bundle/nvim-lspconfig/lua/lspconfig/server_configurations/sourcekit.lua

21 lines
572 B
Lua
Raw Normal View History

local util = require 'lspconfig.util'
2021-10-05 15:13:10 +08:00
return {
2021-10-05 15:13:10 +08:00
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',
2021-10-05 15:13:10 +08:00
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")]],
},
},
}