aboutsummaryrefslogtreecommitdiffstats
path: root/lua/nvim-lsp-installer/servers/spectral/init.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/nvim-lsp-installer/servers/spectral/init.lua')
-rw-r--r--lua/nvim-lsp-installer/servers/spectral/init.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/lua/nvim-lsp-installer/servers/spectral/init.lua b/lua/nvim-lsp-installer/servers/spectral/init.lua
index 28a09274..e308369c 100644
--- a/lua/nvim-lsp-installer/servers/spectral/init.lua
+++ b/lua/nvim-lsp-installer/servers/spectral/init.lua
@@ -21,7 +21,9 @@ return function(name, root_dir)
installers.always_succeed(npm.run "compile"),
context.set_working_dir "server",
context.receipt(function(receipt, ctx)
- receipt:with_primary_source(receipt.github_release_file(ctx))
+ receipt
+ :mark_invalid() -- Due to the `context.set_working_dir` after clone, we essentially erase any trace of the cloned git repo, so we mark this as invalid.
+ :with_primary_source(receipt.git_remote "https://github.com/stoplightio/vscode-spectral")
end),
},
default_options = {