nvim: fix latex problem
This commit is contained in:
@@ -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,
|
||||
}
|
||||
|
||||
@@ -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}",
|
||||
|
||||
Reference in New Issue
Block a user