Merge branch 'lahwaacz-master'
This commit is contained in:
commit
b944b8418e
@ -860,9 +860,25 @@ automatic completion with |vimtex|: >
|
|||||||
let g:neocomplete#sources#omni#input_patterns.tex =
|
let g:neocomplete#sources#omni#input_patterns.tex =
|
||||||
\ '\v\\\a*(ref|cite)\a*([^]]*\])?\{([^}]*,)*[^}]*'
|
\ '\v\\\a*(ref|cite)\a*([^]]*\])?\{([^}]*,)*[^}]*'
|
||||||
|
|
||||||
I do not know the appropriate settings to enable good autocomplete with
|
To enable automatic completion with YouCompleteMe, it has to be explicitely
|
||||||
YouCompleteMe. If anyone has a good set of settings that provide autocomplete
|
enabled for the tex filetype. For tex files, it is also a good idea to disable
|
||||||
with YouCompleteMe for |vimtex|, I will be happy to accept pull requests.
|
the identifier based completion and rely only on semantic completion, which
|
||||||
|
will use the 'omnifunc' set by |vimtex|. Then the same patterns as above can
|
||||||
|
be used to trigger the semantic completion.
|
||||||
|
|
||||||
|
" enable YCM for tex files
|
||||||
|
let g:ycm_filetype_whitelist.tex = 1
|
||||||
|
|
||||||
|
" disable identifier based completion for tex files
|
||||||
|
autocmd FileType tex let g:ycm_min_num_of_chars_for_completion = 99
|
||||||
|
|
||||||
|
" set patterns to trigger semantic completion
|
||||||
|
if !exists('g:ycm_semantic_triggers')
|
||||||
|
let g:ycm_semantic_triggers = {}
|
||||||
|
endif
|
||||||
|
let g:ycm_semantic_triggers.tex = [
|
||||||
|
\ '\v\\\a*(ref|cite)\a*([^]]*\])?\{([^}]*,)*[^}]*'
|
||||||
|
\ ]
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
FOLDING *vimtex-folding*
|
FOLDING *vimtex-folding*
|
||||||
|
Loading…
Reference in New Issue
Block a user