From ec358406bca148d48dc83195565a75d5f5ba3bee Mon Sep 17 00:00:00 2001 From: William Boman Date: Mon, 17 May 2021 14:40:26 +0200 Subject: add rust_analyzer (#14) --- lua/nvim-lsp-installer/servers/rust_analyzer/init.lua | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 lua/nvim-lsp-installer/servers/rust_analyzer/init.lua (limited to 'lua/nvim-lsp-installer/servers/rust_analyzer/init.lua') diff --git a/lua/nvim-lsp-installer/servers/rust_analyzer/init.lua b/lua/nvim-lsp-installer/servers/rust_analyzer/init.lua new file mode 100644 index 00000000..99b0c54c --- /dev/null +++ b/lua/nvim-lsp-installer/servers/rust_analyzer/init.lua @@ -0,0 +1,14 @@ +local server = require("nvim-lsp-installer.server") +local path = require("nvim-lsp-installer.path") +local zx = require("nvim-lsp-installer.installers.zx") + +local root_dir = server.get_server_root_path("rust") + +return server.Server:new { + name = "rust_analyzer", + root_dir = root_dir, + install_cmd = zx.file("./install.mjs"), + default_options = { + cmd = { path.concat { root_dir, "rust-analyzer" } }, + }, +} -- cgit v1.2.3-70-g09d2