2 -- Add BibTeX/LaTeX to treesitter
4 "nvim-treesitter/nvim-treesitter",
5 opts = function(_, opts)
6 opts.highlight = opts.highlight or {}
7 if type(opts.ensure_installed) == "table" then
8 vim.list_extend(opts.ensure_installed, { "bibtex" })
10 if type(opts.highlight.disable) == "table" then
11 vim.list_extend(opts.highlight.disable, { "latex" })
13 opts.highlight.disable = { "latex" }
20 lazy = false, -- lazy-loading will disable inverse search
22 vim.g.vimtex_mappings_disable = { ["n"] = { "K" } } -- disable `K` as it conflicts with LSP hover
23 vim.g.vimtex_quickfix_method = vim.fn.executable("pplatex") == 1 and "pplatex" or "latexlog"
26 { "<localLeader>l", "", desc = "+vimtex", ft = "tex" },
30 -- Correctly setup lspconfig for LaTeX 🚀
32 "neovim/nvim-lspconfig",
38 { "<Leader>K", "<plug>(vimtex-doc-package)", desc = "Vimtex Docs", silent = true },