nvim/pack/acp/opt/nvim-lspconfig/lua/lspconfig/server_configurations/sourcekit.lua

21 lines
572 B
Lua
Raw Normal View History

2022-01-10 11:08:46 +00:00
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', '.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")]],
},
},
}