commit 037d12569f2e15705d731998a6164762eaccab00
parent 28249edb061970128f13420515b4fa0947a940b3
Author: Ashymad <czilukim@o2.pl>
Date: Wed, 11 Apr 2018 16:20:09 +0200
vimlatex instead of latex-suite
Diffstat:
1 file changed, 13 insertions(+), 4 deletions(-)
diff --git a/nvim/.config/nvim/init.vim b/nvim/.config/nvim/init.vim
@@ -23,7 +23,8 @@ Plug 'vim-scripts/indentpython.vim'
Plug 'Vimjas/vim-python-pep8-indent'
" LaTeX
-Plug 'vim-latex/vim-latex'
+" Plug 'vim-latex/vim-latex'
+Plug 'lervag/vimtex'
" R
Plug 'jalvesaq/Nvim-R'
@@ -36,6 +37,9 @@ Plug 'tpope/vim-fugitive'
call plug#end()
+" Disable latexBox in polyglot
+let g:polyglot_disabled = ['latex']
+
let g:lightline = {
\ 'colorscheme': 'onedark',
\ }
@@ -62,14 +66,19 @@ function SetTeXOptions()
setlocal spell! spelllang=pl
endfunction
-let g:Tex_DefaultTargetFormat = 'pdf'
-let g:Tex_CompileRule_pdf = 'latexmk -pdf -f $*'
-let g:Tex_ViewRule_pdf = 'zathura'
+let g:vimtex_view_method = 'zathura'
+
+let g:vimtex_view_zathura_options = '-x "nvr --servername ' . v:servername . ' +%{line} %{input}"'
map <C-l> :NERDTreeToggle<CR>
let g:ycm_python_binary_path = 'python'
+if !exists('g:ycm_semantic_triggers')
+let g:ycm_semantic_triggers = {}
+endif
+let g:ycm_semantic_triggers.tex = g:vimtex#re#youcompleteme
+
syntax on
colorscheme onedark
set noshowmode