update texlab settings

writing
Nick Zana 5 months ago
parent 79d94753f4
commit dc9a995395

@ -4,6 +4,7 @@ local lsp = require('lsp-zero').preset({
manage_nvim_cmp = true,
suggest_lsp_servers = false,
})
local lspconfig = require('lspconfig')
local keybindings = require('keybindings')
local on_attach = keybindings.on_attach
@ -57,10 +58,22 @@ lsp.configure('html', {
cmd = { "npx", "vscode-html-language-server", "--stdio" },
})
lsp.configure('texlab', {
forwardSearch = {
executable = 'zathura',
args = { '--synctex-forward', '%l:1:%f', '%p' }
lspconfig.texlab.setup({
settings = {
texlab = {
auxDirectory = '.',
bibtexFormatter = 'texlab',
forwardSearch = {
executable = 'zathura',
args = { '--synctex-forward', '%l:1:%f', '%p' }
},
build = {
executable = "tectonic",
args = { '-X', 'compile', '%f', '--synctex', '--keep-logs', '--keep-intermediates' },
onSave = true,
forwardSearchAfter = true,
},
},
},
})

Loading…
Cancel
Save