From 528cf3726dc82f39f8b3c25b51e4337bae606217 Mon Sep 17 00:00:00 2001 From: Nick Zana Date: Mon, 24 Apr 2023 00:10:34 -0400 Subject: [PATCH] add texlab lsp support --- lua/lsp.lua | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/lua/lsp.lua b/lua/lsp.lua index c0c58d0..e64ee2b 100644 --- a/lua/lsp.lua +++ b/lua/lsp.lua @@ -1,7 +1,7 @@ local lsp = require('lsp-zero').preset({ name = 'minimal', set_lsp_keymaps = false, - manage_nvim_cmp = false, + manage_nvim_cmp = true, suggest_lsp_servers = false, }) @@ -54,6 +54,13 @@ lsp.configure('html', { cmd = { "npx", "vscode-html-language-server", "--stdio" }, }) -lsp.setup_servers({'tsserver', 'rust_analyzer', 'html'}) +lsp.configure('texlab', { + forwardSearch = { + executable = 'zathura', + args = { '--synctex-forward', '%l:1:%f', '%p' } + }, +}) + +lsp.setup_servers({'tsserver', 'rust_analyzer', 'html', 'texlab'}) lsp.setup()