Replies: 1 comment
-
|
FWIW, here is my LazyVim configuration: {
"neovim/nvim-lspconfig",
opts = {
servers = {
texlab = {
-- cmd = { "texlab" },
cmd = { "texlab", "-vvvv", "--log-file", "/tmp/texlab.log" },
settings = {
texlab = {
-- rootDirectory = nil,
build = {
executable = "latexmk",
args = { "-shell-escape", "-pdf", "-interaction=nonstopmode", "-synctex=1", "%f" },
onSave = true,
forwardSearchAfter = true,
},
auxDirectory = ".",
forwardSearch = {
executable = "/Applications/Skim.app/Contents/SharedSupport/displayline",
args = { "-g", "-b", "%l", "%p", "%f" },
},
chktex = {
onOpenAndSave = true,
onEdit = false,
},
diagnosticsDelay = 300,
latexFormatter = "none",
bibtexFormatter = "none",
formatterLineLength = 0,
},
},
},
},
inlay_hints = {
enabled = true,
exclude = { "tex", "bib" },
},
},
},
{
"f3fora/nvim-texlabconfig",
config = function()
require("texlabconfig").setup()
end,
build = "go build -o ~/.local/bin/",
}, |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm using Texlab in LazyVim via
nvim-texlabconfig. All is well except that the root file doesn't seem to be detected in multiple-file documents. I havemain.texcontainingmain-body.texcontaining, e.g.,Both are in the same directory. I opened
main-body.texin neovim from that directory, but it looks like Texlab is compilingmain-body.texinstead ofmain.tex.I also tried adding the good old
to
main.texand%!TEX root = main.texto
main-body.tex, but with no more success.If it's useful, here is the Texlab log: https://gist.github.com/dpo/4cfa26fcea04700460b241b781656039
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions