nvim: fix latex problem

This commit is contained in:
Marco Thomas
2023-01-28 01:29:34 +01:00
parent 4e88af454d
commit 09c8f5a305
2 changed files with 8 additions and 2 deletions

View File

@@ -1,3 +1,5 @@
local util = require 'lspconfig.util'
-- Custom warning symbols
local signs = { Error = "", Warn = "", Hint = "", Info = "" }
for type, icon in pairs(signs) do
@@ -39,8 +41,10 @@ lsp.texlab.setup({
navic.attach(client, bufnr) -- breadcrumbs
end,
settings = {
cmd = { 'texlab' },
texlab = {
build = {
executable = 'latexmk',
args = { '-xelatex', '-interaction=nonstopmode', '-synctex=1', '-shell-escape', '%f' },
onSave = true,
}

View File

@@ -108,7 +108,8 @@
"% glossary, use with \\gls{TERM}; make sure to run `makeglossaries`",
"\\printglossaries",
"",
"% begin here; don't forget to relaunch nvim :>",
"% begin here; don't forget to relaunch nvim",
"% and create a .latexmkrc :>",
"\\section{}",
"",
"% bibliography, cite with \\autocite{}",
@@ -207,7 +208,8 @@
"\\end{frame}",
"\\newpage",
"",
"% begin here; don't forget to relaunch nvim :>",
"% begin here; don't forget to relaunch nvim",
"% and create a .latexmkrc :>",
"\\section{}",
"\\begin{frame}",
"\\end{frame}",