From 5883c0936654c694f525de29dc76bbd38a6f76e8 Mon Sep 17 00:00:00 2001 From: isaacST08 Date: Sun, 19 Jan 2025 11:06:22 -0700 Subject: [PATCH] Fixed texlab needing to be installed globally to be able to use the lsp --- modules/plugins/languages/tex.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/plugins/languages/tex.nix b/modules/plugins/languages/tex.nix index 48e3357a..57b3be97 100644 --- a/modules/plugins/languages/tex.nix +++ b/modules/plugins/languages/tex.nix @@ -280,12 +280,12 @@ in stringToLua = string: nullOnEmpty: if string == "" then if nullOnEmpty then "null" else "" else ''"${string}"''; - boolToLua = - boolean: if boolean then "true" else "false"; + boolToLua = boolean: if boolean then "true" else "false"; in (mkIf tl.enable { vim.lsp.lspconfig.sources.texlab = '' lspconfig.texlab.setup { + cmd = { "${tl.package}/bin/texlab" }, settings = { texlab = { build = {