Browse Source

Added vimtex plugin with YCM completions.

master
Daniel Sissom 5 years ago
parent
commit
1168d2763f
Signed by untrusted user who does not match committer: djsissom GPG Key ID: 2C30FFB796852389
1 changed files with 8 additions and 0 deletions
  1. + 8
    - 0
      vim/vimrc

+ 8
- 0
vim/vimrc

@ -104,6 +104,7 @@ if filereadable("/etc/vim/vimrc.local")
endif
syntax spell toplevel
let g:tex_flavor = 'latex'
function! BuildYCM(info)
" info is a dictionary with 3 fields
@ -133,6 +134,7 @@ call plug#begin('~/.vim/vim-plug')
Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' }
Plug 'ycm-core/YouCompleteMe', { 'do': function('BuildYCM'), 'on': [] }
Plug 'lervag/vimtex'
call plug#end()
@ -142,3 +144,9 @@ map :NERDTreeToggle
let g:ycm_autoclose_preview_window_after_insertion = 1
let g:ycm_autoclose_preview_window_after_completion = 1
" enable vimtex completions for YCM
if !exists('g:ycm_semantic_triggers')
let g:ycm_semantic_triggers = {}
endif
autocmd VimEnter * let g:ycm_semantic_triggers.tex=g:vimtex#re#youcompleteme

Loading…
Cancel
Save