return { { "neovim/nvim-lspconfig", opts = { servers = { 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", -- "texlab" is not implemented yet -- latexindent = { -- ['local'] = nil, -- local is a reserved keyword -- modifyLineBreaks = true, -- }, bibtexFormatter = "none", formatterLineLength = 0, }, }, }, }, }, }, { "f3fora/nvim-texlabconfig", config = function() require("texlabconfig").setup() end, -- ft = { 'tex', 'bib' }, -- Lazy-load on filetype build = "go build -o ~/.local/bin/", -- build = 'go build -o ~/.bin/' -- if e.g. ~/.bin/ is in $PATH }, -- Configure Skim.app sync as follows: -- Preset: Custom -- Command: /Users/dpo/.local/bin/nvim-texlabconfig -- Arguments: -file '%file' -line %line -cache_root ~/.cache/nvim-LazyVim { "barreiroleo/ltex_extra.nvim", branch = "dev", ft = { "markdown", "tex" }, opts = { ---@type string[] -- See https://valentjn.github.io/ltex/supported-languages.html#natural-languages load_langs = { "en-US" }, ---@type "none" | "fatal" | "error" | "warn" | "info" | "debug" | "trace" log_level = "trace", ---@type string File's path to load. -- The setup will normalice it running vim.fs.normalize(path). -- e.g. subfolder in project root or cwd: ".ltex" -- e.g. cross project settings: vim.fn.expand("~") .. "/.local/share/ltex" path = ".ltex", }, }, }