From 9a75066e5d8bbcbd2af66f10f7b42a1a0e4906ac Mon Sep 17 00:00:00 2001 From: Chun Li Date: Sat, 14 Feb 2026 15:59:45 -0800 Subject: [PATCH] Update vimtex plugin to add command for rendering. --- config/nvim/lua/plugins/vimtext.lua | 9 ++++++--- zsh/dot-zshrc | 1 + 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/config/nvim/lua/plugins/vimtext.lua b/config/nvim/lua/plugins/vimtext.lua index 0f7f615..6c54f0c 100644 --- a/config/nvim/lua/plugins/vimtext.lua +++ b/config/nvim/lua/plugins/vimtext.lua @@ -1,9 +1,12 @@ return { 'lervag/vimtex', - lazy = false, -- we don't want to lazy load VimTeX - -- tag = "v2.15", -- uncomment to pin to a specific release + lazy = false, + ft = { 'tex', 'latex', 'bib' }, init = function() - -- VimTeX configuration goes here, e.g. vim.g.vimtex_view_method = 'zathura' + vim.g.vimtex_compiler_method = 'latexmk' end, + keys = { + { 'r', 'VimtexCompile', desc = 'Compile LaTeX and view PDF', ft = 'tex' }, + }, } diff --git a/zsh/dot-zshrc b/zsh/dot-zshrc index ec1d1d4..3bafa31 100644 --- a/zsh/dot-zshrc +++ b/zsh/dot-zshrc @@ -29,3 +29,4 @@ alias transcat='queercat -f transgender' alias bicat='queercat -f bisexual' source <(fzf --zsh) +export PATH="$HOME/.local/bin:$PATH"