aboutsummaryrefslogtreecommitdiffstats
path: root/lua/lspconfig/rnix.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/lspconfig/rnix.lua')
-rw-r--r--lua/lspconfig/rnix.lua47
1 files changed, 0 insertions, 47 deletions
diff --git a/lua/lspconfig/rnix.lua b/lua/lspconfig/rnix.lua
index deaeac98..ab879a75 100644
--- a/lua/lspconfig/rnix.lua
+++ b/lua/lspconfig/rnix.lua
@@ -3,47 +3,6 @@ local util = require 'lspconfig/util'
local name = "rnix"
-local function make_installer()
- local P = util.path.join
- local install_dir = P{util.base_install_dir, name}
-
- local bin = P{install_dir, "bin", "rnix-lsp"}
- local cmd = {bin}
-
- local X = {}
- function X.install()
- local install_info = X.info()
- if install_info.is_installed then
- print(name, "is already installed")
- return
- end
- if not (util.has_bins("cargo")) then
- error('Need "cargo" to install this.')
- return
- end
-
- local install_cmd = "cargo install rnix-lsp --root=" .. install_info.install_dir .. " rnix-lsp"
-
- vim.fn.system(install_cmd)
- end
- function X.info()
- return {
- is_installed = util.path.exists(bin);
- install_dir = install_dir;
- cmd = cmd;
- }
- end
- function X.configure(config)
- local install_info = X.info()
- if install_info.is_installed then
- config.cmd = cmd
- end
- end
- return X
-end
-
-local installer = make_installer()
-
configs[name] = {
default_config = {
@@ -54,9 +13,6 @@ configs[name] = {
end;
settings = {
};
- on_new_config = function(config)
- installer.configure(config)
- end;
init_options = {
};
};
@@ -76,6 +32,3 @@ This server accepts configuration via the `settings` key.
};
};
};
-
-configs[name].install = installer.install
-configs[name].install_info = installer.info