nvim-config

Log | Files | Refs | Submodules | README

commit 4b8340f63f9b1429014dac5e5f33b1d2f6063932
parent b45ea43897059bcd861841dca902d8681523e248
Author: Thomas Vigouroux <thomas.vigouroux@protonmail.com>
Date:   Thu, 31 Mar 2022 09:07:35 +0200

feat(texlab): use forward search

Diffstat:
Mlua/lsp_config.lua | 14++++++++++++++
1 file changed, 14 insertions(+), 0 deletions(-)

diff --git a/lua/lsp_config.lua b/lua/lsp_config.lua @@ -50,6 +50,7 @@ local function on_attach(client, bufnr) end local function texlab_attach(client, bufnr) + vim.api.nvim_buf_set_keymap(bufnr, 'n', '<Leader>m', '<cmd>TexlabForward<CR>', { noremap=true, silent=true }) vim.lsp.protocol.SymbolKind = { 'file'; 'sec'; @@ -162,6 +163,19 @@ local lsps = { texlab = { capabilities = capabilities, on_attach = texlab_attach, + settings = { + texlab = { + build = { + onSave = true, + forwardSearchAfter = true, + args = {"-pdf", "-interaction=nonstopmode", "-synctex=1", "-pvc", "%f"} + }, + forwardSearch = { + executable = "zathura", + args = { "--synctex-forward", "%l:1:%f", "%p" } + } + } + }, }, ltex = { on_attach = on_attach,