Compare commits

...

1 Commits

Author SHA1 Message Date
Nick Zana dc9a995395 update texlab settings 1 year ago

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

Loading…
Cancel
Save