|
|
|
@ -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,11 +58,23 @@ lsp.configure('html', {
|
|
|
|
|
cmd = { "npx", "vscode-html-language-server", "--stdio" },
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
lsp.configure('texlab', {
|
|
|
|
|
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,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
lsp.configure('clangd', {})
|
|
|
|
|