diff --git a/init.vim b/init.vim index 44c5384..ded494e 100644 --- a/init.vim +++ b/init.vim @@ -40,7 +40,9 @@ call plug#end() "set background=light colorscheme gruvbox let g:gruvbox_contrast_light = 'hard' -let g:vimtex_view_general_viewer = 'okular' + +let g:vimtex_view_method = 'mupdf' +let g:vimtex_compiler_latexmk= {'options' : ['-pdf', '-shell-escape', '-verbose', '-file-line-error', '-synctex=1', '-interaction=nonstopmode',],} "Open NERDTree :nnoremap g:NERDTree.IsOpen() ? "\:NERDTreeClose" : bufexists(expand('%')) ? "\:NERDTreeFind" : "\:NERDTree" @@ -162,7 +164,24 @@ augroup fcitxHandler autocmd InsertEnter * silent call FcitxOn() autocmd InsertLeave * silent call FcitxOff() augroup END -let g:vimtex_view_general_viewer = 'okular' + +"For vimtex +let g:vimtex_view_method = 'mupdf' +let g:compiler = vimtex#compiler#_template#new({ + \ 'name' : 'latexmk', + \ 'aux_dir': '', + \ 'callback' : 1, + \ 'continuous': 1, + \ 'executable' : 'latexmk', + \ 'options' : [ + \ '-verbose', + \ '-file-line-error', + \ '-synctex=1', + \ '-interaction=nonstopmode', + \ '-shell-escape', + \ ], + \}) + map :ALEToggle "Use 24-bit (true-color) mode in Vim/Neovim when outside tmux.