From 909a6797d33e58b7a58d3cc2a815a4be649d3e59 Mon Sep 17 00:00:00 2001 From: "E. Almqvist" Date: Thu, 17 Mar 2022 21:47:53 +0100 Subject: [PATCH] VimTex & other stuff --- nvim/.config/nvim/init.vim | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/nvim/.config/nvim/init.vim b/nvim/.config/nvim/init.vim index a59cba0..d2237ac 100644 --- a/nvim/.config/nvim/init.vim +++ b/nvim/.config/nvim/init.vim @@ -32,6 +32,7 @@ call plug#begin('~/.config/nvim/plugged') Plug 'slim-template/vim-slim' Plug 'OmniSharp/omnisharp-vim' Plug 'ngmy/vim-rubocop' + Plug 'lervag/vimtex' call plug#end() set nocompatible @@ -89,3 +90,14 @@ endif let g:coc_global_extensions = ['coc-prettier', 'coc-tsserver', 'coc-solargraph', 'coc-sh', 'coc-json', 'coc-html', 'coc-css', 'coc-cmake', 'coc-emmet', 'coc-vimtex'] " 'coc-clangd' " 'coc-pyright' + + +let g:vimtex_view_method = 'zathura' + +" Or with a generic interface: +let g:vimtex_view_general_viewer = 'zathura' +let g:vimtex_view_general_options = '--unique file:@pdf\#src:@line@tex' + +" Most VimTeX mappings rely on localleader and this can be changed with the +" following line. The default is usually fine and is the symbol "\". +let maplocalleader = ","