aboutsummaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
authorWilliam Boman <william@redwill.se>2022-01-24 19:38:44 +0100
committerWilliam Boman <william@redwill.se>2022-01-24 19:38:44 +0100
commitaf20eda31aee69bd2f1bc69d108d1fccf54cb249 (patch)
treea2c6d84a7ea1ff1d54be260b22465c8bc38cc43d /lua
parentadd beancount (#445) (diff)
downloadmason-af20eda31aee69bd2f1bc69d108d1fccf54cb249.tar
mason-af20eda31aee69bd2f1bc69d108d1fccf54cb249.tar.gz
mason-af20eda31aee69bd2f1bc69d108d1fccf54cb249.tar.bz2
mason-af20eda31aee69bd2f1bc69d108d1fccf54cb249.tar.lz
mason-af20eda31aee69bd2f1bc69d108d1fccf54cb249.tar.xz
mason-af20eda31aee69bd2f1bc69d108d1fccf54cb249.tar.zst
mason-af20eda31aee69bd2f1bc69d108d1fccf54cb249.zip
fix(beancount): fix rename on windows, also remove debug print
Diffstat (limited to 'lua')
-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(),