nvim: fix latex problem
This commit is contained in:
@@ -1,3 +1,5 @@
|
|||||||
|
local util = require 'lspconfig.util'
|
||||||
|
|
||||||
-- Custom warning symbols
|
-- Custom warning symbols
|
||||||
local signs = { Error = " ", Warn = " ", Hint = " ", Info = " " }
|
local signs = { Error = " ", Warn = " ", Hint = " ", Info = " " }
|
||||||
for type, icon in pairs(signs) do
|
for type, icon in pairs(signs) do
|
||||||
@@ -39,8 +41,10 @@ lsp.texlab.setup({
|
|||||||
navic.attach(client, bufnr) -- breadcrumbs
|
navic.attach(client, bufnr) -- breadcrumbs
|
||||||
end,
|
end,
|
||||||
settings = {
|
settings = {
|
||||||
|
cmd = { 'texlab' },
|
||||||
texlab = {
|
texlab = {
|
||||||
build = {
|
build = {
|
||||||
|
executable = 'latexmk',
|
||||||
args = { '-xelatex', '-interaction=nonstopmode', '-synctex=1', '-shell-escape', '%f' },
|
args = { '-xelatex', '-interaction=nonstopmode', '-synctex=1', '-shell-escape', '%f' },
|
||||||
onSave = true,
|
onSave = true,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -108,7 +108,8 @@
|
|||||||
"% glossary, use with \\gls{TERM}; make sure to run `makeglossaries`",
|
"% glossary, use with \\gls{TERM}; make sure to run `makeglossaries`",
|
||||||
"\\printglossaries",
|
"\\printglossaries",
|
||||||
"",
|
"",
|
||||||
"% begin here; don't forget to relaunch nvim :>",
|
"% begin here; don't forget to relaunch nvim",
|
||||||
|
"% and create a .latexmkrc :>",
|
||||||
"\\section{}",
|
"\\section{}",
|
||||||
"",
|
"",
|
||||||
"% bibliography, cite with \\autocite{}",
|
"% bibliography, cite with \\autocite{}",
|
||||||
@@ -207,7 +208,8 @@
|
|||||||
"\\end{frame}",
|
"\\end{frame}",
|
||||||
"\\newpage",
|
"\\newpage",
|
||||||
"",
|
"",
|
||||||
"% begin here; don't forget to relaunch nvim :>",
|
"% begin here; don't forget to relaunch nvim",
|
||||||
|
"% and create a .latexmkrc :>",
|
||||||
"\\section{}",
|
"\\section{}",
|
||||||
"\\begin{frame}",
|
"\\begin{frame}",
|
||||||
"\\end{frame}",
|
"\\end{frame}",
|
||||||
|
|||||||
Reference in New Issue
Block a user