blob: b7f3d3a17d67f86b263ecab23b8e5581c30b1f6e (
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
|
local server = require "nvim-lsp-installer.server"
local std = require "nvim-lsp-installer.installers.std"
local context = require "nvim-lsp-installer.installers.context"
return function(name, root_dir)
return server.Server:new {
name = name,
root_dir = root_dir,
homepage = "https://github.com/apple/sourcekit-lsp",
languages = { "swift" },
installer = {
std.ensure_executables {
{
"sourcekit-lsp",
"sourcekit-lsp was not found in path. Refer to https://github.com/apple/sourcekit-lsp for installation instructions.",
},
},
context.receipt(function(receipt)
receipt:with_primary_source(receipt.system "sourcekit-lsp")
end),
},
default_options = {},
}
end
|