diff options
author | lonkaars <l.leblansch@gmail.com> | 2020-12-13 06:01:09 +0100 |
---|---|---|
committer | lonkaars <l.leblansch@gmail.com> | 2020-12-13 06:01:09 +0100 |
commit | 6f201d20527bc2104e338d1bd28adecf301c73b7 (patch) | |
tree | 3debaf513946206d9c9a464b0bbf609134f7f73f | |
parent | 796dbe07d35b6604d89b1c79e99626c2025dfcfc (diff) |
better TeX bindings in vimrc
-rw-r--r-- | .config/nvim/init.vim | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim index 2272952..56cff41 100644 --- a/.config/nvim/init.vim +++ b/.config/nvim/init.vim @@ -149,12 +149,14 @@ let g:which_key_map.s = 'trailing-whitespace' map <leader>w :w<CR> let g:which_key_map.w = 'write' -map <leader>dv :!opout <c-r>%<cr><cr> -map <leader>dc :w! <bar> !compiler <c-r>%<cr> +map <leader>dv :VimtexView<cr> +map <leader>dc :VimtexCompile<cr> +map <leader>dt :VimtexTocToggle<cr> let g:which_key_map.d = { \ 'name': '+document', \ 'v': 'view', - \ 'c': 'compile' + \ 'c': 'compile', + \ 't': 'table-of-contents' \ } map <leader>ts :sp term://zsh<cr>i @@ -241,7 +243,6 @@ hi CocInfoSign guibg=NONE hi CocWarningSign guibg=NONE " vimtex config -let g:tex_flavor = 'latex' let g:vimtex_compiler_latexmk = { \ 'backend' : 'nvim', \ 'background' : 1, |