aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lua/nvim-lsp-installer/servers/beancount/init.lua8
1 files changed, 6 insertions, 2 deletions
diff --git a/lua/nvim-lsp-installer/servers/beancount/init.lua b/lua/nvim-lsp-installer/servers/beancount/init.lua
index 9d536122..b9908488 100644
--- a/lua/nvim-lsp-installer/servers/beancount/init.lua
+++ b/lua/nvim-lsp-installer/servers/beancount/init.lua
@@ -10,7 +10,7 @@ local process = require "nvim-lsp-installer.process"
local coalesce, when = Data.coalesce, Data.when
return function(name, root_dir)
- print(process.extend_path { root_dir, pip3.path(root_dir) })
+ local file_ext = platform.is_win and ".exe" or ""
return server.Server:new {
name = name,
root_dir = root_dir,
@@ -28,7 +28,11 @@ return function(name, root_dir)
context.capture(function(ctx)
return installers.pipe {
std.unzip_remote(ctx.github_release_file),
- std.rename("beancount-language-server", "beancount-langserver"), -- to conform with lspconfig
+ -- We rename the binary to conform with lspconfig
+ std.rename(
+ ("beancount-language-server%s"):format(file_ext),
+ ("beancount-langserver%s"):format(file_ext)
+ ),
}
end),
context.promote_install_dir(),