From e8530f4059279a0d6b5e5f8891d04ffb1ade29a3 Mon Sep 17 00:00:00 2001 From: William Boman Date: Mon, 3 Jan 2022 15:12:53 +0100 Subject: write install receipts (#379) --- lua/nvim-lsp-installer/servers/sourcekit/init.lua | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'lua/nvim-lsp-installer/servers/sourcekit/init.lua') 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 = {}, } -- cgit v1.2.3-70-g09d2