diff options
Diffstat (limited to 'lua/nvim-lsp-installer/servers/sourcekit')
| -rw-r--r-- | lua/nvim-lsp-installer/servers/sourcekit/init.lua | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/lua/nvim-lsp-installer/servers/sourcekit/init.lua b/lua/nvim-lsp-installer/servers/sourcekit/init.lua index 46fb008c..b7f3d3a1 100644 --- a/lua/nvim-lsp-installer/servers/sourcekit/init.lua +++ b/lua/nvim-lsp-installer/servers/sourcekit/init.lua @@ -1,5 +1,6 @@ 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 { @@ -7,11 +8,16 @@ return function(name, root_dir) 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.", + 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 = {}, } |
