diff options
Diffstat (limited to 'lua/nvim-lsp-installer/servers/texlab/init.lua')
| -rw-r--r-- | lua/nvim-lsp-installer/servers/texlab/init.lua | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/lua/nvim-lsp-installer/servers/texlab/init.lua b/lua/nvim-lsp-installer/servers/texlab/init.lua index 398da0b5..57f4c050 100644 --- a/lua/nvim-lsp-installer/servers/texlab/init.lua +++ b/lua/nvim-lsp-installer/servers/texlab/init.lua @@ -4,26 +4,26 @@ local std = require "nvim-lsp-installer.installers.std" local Data = require "nvim-lsp-installer.data" local platform = require "nvim-lsp-installer.platform" -local root_dir = server.get_server_root_path "latex" - local VERSION = "v3.2.0" local target = Data.coalesce( Data.when(platform.is_mac, "texlab-x86_64-macos.tar.gz"), - Data.when(platform.is_unix, "texlab-x86_64-linux.tar.gz"), + Data.when(platform.is_linux, "texlab-x86_64-linux.tar.gz"), Data.when(platform.is_win, "texlab-x86_64-windows.tar.gz") ) -return server.Server:new { - name = "texlab", - root_dir = root_dir, - installer = { - std.ensure_executables { - { "pdflatex" , "A TeX distribution is not installed. Refer to https://www.latex-project.org/get/." }, +return function(name, root_dir) + return server.Server:new { + name = name, + root_dir = root_dir, + installer = { + std.ensure_executables { + { "pdflatex" , "A TeX distribution is not installed. Refer to https://www.latex-project.org/get/." }, + }, + std.untargz_remote(("https://github.com/latex-lsp/texlab/releases/download/%s/%s"):format(VERSION, target)), + }, + default_options = { + cmd = { path.concat { root_dir, "texlab" } }, }, - std.untargz_remote(("https://github.com/latex-lsp/texlab/releases/download/%s/%s"):format(VERSION, target)), - }, - default_options = { - cmd = { path.concat { root_dir, "texlab" } }, - }, -} + } +end |
