diff --git a/lua/lazyvim/plugins/extras/lang/tex.lua b/lua/lazyvim/plugins/extras/lang/tex.lua index a1975a85..25cb2b6d 100644 --- a/lua/lazyvim/plugins/extras/lang/tex.lua +++ b/lua/lazyvim/plugins/extras/lang/tex.lua @@ -36,6 +36,14 @@ return { end, }) + vim.api.nvim_create_autocmd({ "FileType" }, { + group = vim.api.nvim_create_augroup("lazyvim_vimtex_keymap", { clear = true }), + pattern = { "bib", "tex" }, + callback = function() + vim.keymap.set("n", "ld", "(vimtex-doc-package)", { silent = true }) + end, + }) + vim.g.vimtex_complete_enabled = 0 -- use texlab for completion vim.g.vimtex_mappings_disable = { ["n"] = { "K" } } -- disable `K` as it conflicts with LSP hover vim.g.vimtex_quickfix_method = vim.fn.executable("pplatex") == 1 and "pplatex" or "latexlog"