aboutsummaryrefslogtreecommitdiffstats
path: root/lua/nvim-lsp-installer/installers/cargo.lua
diff options
context:
space:
mode:
authorWilliam Boman <william@redwill.se>2022-01-02 15:11:07 +0100
committerGitHub <noreply@github.com>2022-01-02 15:11:07 +0100
commit451587d3a891e596ecfce1e9b0e77747d9d4d7cb (patch)
treee465c0f49b13bba8db7e8498c6a9e7833b6c6897 /lua/nvim-lsp-installer/installers/cargo.lua
parentadd taplo (#373) (diff)
downloadmason-451587d3a891e596ecfce1e9b0e77747d9d4d7cb.tar
mason-451587d3a891e596ecfce1e9b0e77747d9d4d7cb.tar.gz
mason-451587d3a891e596ecfce1e9b0e77747d9d4d7cb.tar.bz2
mason-451587d3a891e596ecfce1e9b0e77747d9d4d7cb.tar.lz
mason-451587d3a891e596ecfce1e9b0e77747d9d4d7cb.tar.xz
mason-451587d3a891e596ecfce1e9b0e77747d9d4d7cb.tar.zst
mason-451587d3a891e596ecfce1e9b0e77747d9d4d7cb.zip
fix(taplo): use github release files instead (#377)
Diffstat (limited to 'lua/nvim-lsp-installer/installers/cargo.lua')
-rw-r--r--lua/nvim-lsp-installer/installers/cargo.lua30
1 files changed, 0 insertions, 30 deletions
diff --git a/lua/nvim-lsp-installer/installers/cargo.lua b/lua/nvim-lsp-installer/installers/cargo.lua
deleted file mode 100644
index 8f4bf0ed..00000000
--- a/lua/nvim-lsp-installer/installers/cargo.lua
+++ /dev/null
@@ -1,30 +0,0 @@
-local process = require "nvim-lsp-installer.process"
-local path = require "nvim-lsp-installer.path"
-
-local M = {}
-
----@param crates string[] The crates to install.
-function M.crates(crates)
- ---@type ServerInstallerFunction
- return function(_, callback, ctx)
- local args = { "install", "--root", ".", "--locked" }
- if ctx.requested_server_version then
- vim.list_extend(args, { "--version", ctx.requested_server_version })
- end
- vim.list_extend(args, crates)
-
- process.spawn("cargo", {
- cwd = ctx.install_dir,
- args = args,
- stdio_sink = ctx.stdio_sink,
- }, callback)
- end
-end
-
----@param root_dir string The directory to resolve the executable from.
----@param executable string
-function M.executable(root_dir, executable)
- return path.concat { root_dir, "bin", executable }
-end
-
-return M