nvim-config

Log | Files | Refs | Submodules | README

commit 8227afc6c6892c0f3c07d61496d9252c8f24f1cb
parent 840b2ec9b763f78f45093881d6453bebb6ae6e70
Author: Thomas Vigouroux <me@vigoux.eu>
Date:   Fri,  3 May 2024 09:17:19 +0200

feat(latex): use xelatex

Diffstat:
Mafter/plugin/mappings.lua | 2+-
Mlua/lsp_config.lua | 6++++--
2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/after/plugin/mappings.lua b/after/plugin/mappings.lua @@ -1,2 +1,2 @@ vim.keymap.set('n', '<Leader>zn', require'zest'.open) -vim.keymap.set('n', '<Leader>q', vim.diagnostic.setqflist) +vim.keymap.set('n', '<Leader>q', function() vim.diagnostic.setqflist{severity = vim.diagnostic.severity.ERROR} end) diff --git a/lua/lsp_config.lua b/lua/lsp_config.lua @@ -4,6 +4,8 @@ vim.diagnostic.config { signs = true, } +vim.lsp.log.set_level(vim.lsp.log_levels.WARN) + vim.lsp.handlers['textDocument/hover'] = vim.lsp.with(vim.lsp.handlers.hover, { border = 'single' }) vim.lsp.handlers['textDocument/signatureHelp'] = vim.lsp.with(vim.lsp.handlers.hover, { border = 'single' }) @@ -399,8 +401,8 @@ local system_lsps = { texlab = { build = { onSave = true, - forwardSearchAfter = false, - args = { "-interaction=nonstopmode", "-synctex=1", "-shell-escape", "-pdf", "%f" } + forwardSearchAfter = true, + args = { "-interaction=nonstopmode", "-f", "-synctex=1", "-shell-escape", "-xelatex", "%f" } }, forwardSearch = { executable = "zathura",