aboutsummaryrefslogtreecommitdiffstats
path: root/lua/nvim-lsp-installer/servers/ccls/init.lua
diff options
context:
space:
mode:
authorWilliam Boman <william@redwill.se>2022-01-06 18:21:19 +0100
committerGitHub <noreply@github.com>2022-01-06 18:21:19 +0100
commit5cc73ef7360866c65169e0e7d55d3b59fb3b6eaa (patch)
treeb958f26ae3964e7ba8aa3572b81ece1e23b49df1 /lua/nvim-lsp-installer/servers/ccls/init.lua
parentrerun autogen (diff)
downloadmason-5cc73ef7360866c65169e0e7d55d3b59fb3b6eaa.tar
mason-5cc73ef7360866c65169e0e7d55d3b59fb3b6eaa.tar.gz
mason-5cc73ef7360866c65169e0e7d55d3b59fb3b6eaa.tar.bz2
mason-5cc73ef7360866c65169e0e7d55d3b59fb3b6eaa.tar.lz
mason-5cc73ef7360866c65169e0e7d55d3b59fb3b6eaa.tar.xz
mason-5cc73ef7360866c65169e0e7d55d3b59fb3b6eaa.tar.zst
mason-5cc73ef7360866c65169e0e7d55d3b59fb3b6eaa.zip
feat(ui): display outdated servers (#395)
Diffstat (limited to 'lua/nvim-lsp-installer/servers/ccls/init.lua')
-rw-r--r--lua/nvim-lsp-installer/servers/ccls/init.lua20
1 files changed, 9 insertions, 11 deletions
diff --git a/lua/nvim-lsp-installer/servers/ccls/init.lua b/lua/nvim-lsp-installer/servers/ccls/init.lua
index e77ae80b..3da11377 100644
--- a/lua/nvim-lsp-installer/servers/ccls/init.lua
+++ b/lua/nvim-lsp-installer/servers/ccls/init.lua
@@ -98,9 +98,6 @@ return function(name, root_dir)
),
}
end),
- context.receipt(function(receipt, ctx)
- receipt:with_secondary_source(receipt.github_release_file(ctx))
- end),
}
end
@@ -134,11 +131,6 @@ return function(name, root_dir)
c.spawn(callback)
end,
std.rmrf "ccls-git",
- context.receipt(function(receipt, ctx)
- receipt:with_primary_source(
- receipt.git_remote("https://github.com/MaskRay/ccls", ctx.requested_server_version)
- )
- end),
}
local linux_ccls_installer = installers.pipe {
@@ -175,9 +167,15 @@ return function(name, root_dir)
root_dir = root_dir,
homepage = "https://github.com/MaskRay/ccls",
languages = { "c", "c++", "objective-c" },
- installer = installers.when {
- mac = mac_ccls_installer,
- linux = linux_ccls_installer,
+ installer = {
+ installers.when {
+ mac = mac_ccls_installer,
+ linux = linux_ccls_installer,
+ },
+ context.receipt(function(receipt)
+ -- The cloned ccls git repo gets deleted during installation, so we have no local copy.
+ receipt:mark_invalid()
+ end),
},
default_options = {
cmd_env = {