Add configurations for latexmk to work with minted, change pdf viewer.
This commit is contained in:
parent
4f9b8e72d1
commit
f60741837c
23
init.vim
23
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 <silent> <expr> <F2> g:NERDTree.IsOpen() ? "\:NERDTreeClose<CR>" : bufexists(expand('%')) ? "\:NERDTreeFind<CR>" : "\:NERDTree<CR>"
|
||||
@ -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 <F3> :ALEToggle<CR>
|
||||
"Use 24-bit (true-color) mode in Vim/Neovim when outside tmux.
|
||||
|
Loading…
Reference in New Issue
Block a user