aboutsummaryrefslogtreecommitdiffstats
path: root/lua/nvim-lsp-installer/servers/texlab/init.lua
diff options
context:
space:
mode:
authorWilliam Boman <william@redwill.se>2021-09-17 16:05:20 +0200
committerGitHub <noreply@github.com>2021-09-17 16:05:20 +0200
commit9551bbc1e207ea9a9d436f1bf02a22afc33f6aa6 (patch)
tree58da4fff57cc3aff4380f501b1845310dff4f2e8 /lua/nvim-lsp-installer/servers/texlab/init.lua
parenttexlab: fix ensure_executables (diff)
downloadmason-9551bbc1e207ea9a9d436f1bf02a22afc33f6aa6.tar
mason-9551bbc1e207ea9a9d436f1bf02a22afc33f6aa6.tar.gz
mason-9551bbc1e207ea9a9d436f1bf02a22afc33f6aa6.tar.bz2
mason-9551bbc1e207ea9a9d436f1bf02a22afc33f6aa6.tar.lz
mason-9551bbc1e207ea9a9d436f1bf02a22afc33f6aa6.tar.xz
mason-9551bbc1e207ea9a9d436f1bf02a22afc33f6aa6.tar.zst
mason-9551bbc1e207ea9a9d436f1bf02a22afc33f6aa6.zip
optimize io (70%+ startup speedups) (#93)
Diffstat (limited to 'lua/nvim-lsp-installer/servers/texlab/init.lua')
-rw-r--r--lua/nvim-lsp-installer/servers/texlab/init.lua30
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