From aabbf6b2373b799d084c939b4a48725be6323fd1 Mon Sep 17 00:00:00 2001 From: tastytea Date: Thu, 1 Sep 2022 00:48:12 +0200 Subject: [PATCH] nvim: only activate vimtex if xelatex is installed --- .config/nvim/lua/my/plugins.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.config/nvim/lua/my/plugins.lua b/.config/nvim/lua/my/plugins.lua index 22af778..65f571a 100644 --- a/.config/nvim/lua/my/plugins.lua +++ b/.config/nvim/lua/my/plugins.lua @@ -42,7 +42,8 @@ require('packer').startup({ function(use) use { 'https://github.com/powerman/vim-plugin-AnsiEsc' } use { 'https://github.com/lervag/vimtex', - tag = '*' + tag = '*', + cond = vim.fn.executable('xelatex') == 1 } -- completion