aboutsummaryrefslogtreecommitdiffstats
path: root/lua/nvim-lsp-installer/servers/texlab/init.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/nvim-lsp-installer/servers/texlab/init.lua')
-rw-r--r--lua/nvim-lsp-installer/servers/texlab/init.lua34
1 files changed, 17 insertions, 17 deletions
diff --git a/lua/nvim-lsp-installer/servers/texlab/init.lua b/lua/nvim-lsp-installer/servers/texlab/init.lua
index 45c7c17a..2e3eeea3 100644
--- a/lua/nvim-lsp-installer/servers/texlab/init.lua
+++ b/lua/nvim-lsp-installer/servers/texlab/init.lua
@@ -1,21 +1,21 @@
-local server = require('nvim-lsp-installer.server')
-local path = require("nvim-lsp-installer.path")
-local zx = require("nvim-lsp-installer.installers.zx")
+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('latex')
+local root_dir = server.get_server_root_path "latex"
return server.Server:new {
- name = "texlab",
- root_dir = root_dir,
- installer = zx.file("./install.mjs"),
- pre_install_check = function ()
- if vim.fn.executable("wget") ~=1 then
- error("Missing wget. Please, refer to https://www.gnu.org/software/wget/ to install it.")
- elseif vim.fn.executable("pdflatex") ~=1 then
- error("The program pdflatex wasn't found. Please install a TeX distribution: https://www.latex-project.org/get/#tex-distributions")
- end
- end,
- default_options = {
- cmd = { path.concat { root_dir, "texlab" } },
- }
+ name = "texlab",
+ root_dir = root_dir,
+ installer = zx.file "./install.mjs",
+ pre_install_check = function()
+ if vim.fn.executable "wget" ~= 1 then
+ error "Missing wget. Please, refer to https://www.gnu.org/software/wget/ to install it."
+ elseif vim.fn.executable "pdflatex" ~= 1 then
+ error "The program pdflatex wasn't found. Please install a TeX distribution: https://www.latex-project.org/get/#tex-distributions"
+ end
+ end,
+ default_options = {
+ cmd = { path.concat { root_dir, "texlab" } },
+ },
}