Fixed #453: Added configuration comment on deoplete

This commit is contained in:
Karl Yngve Lervåg 2016-05-09 21:54:37 +02:00
parent f2c4f6b650
commit 89c7d200c3

View File

@ -50,7 +50,7 @@ CONTENTS *vimtex-contents*
Complete standalone file names |vimtex-complete-standalone| Complete standalone file names |vimtex-complete-standalone|
Complete glossary entries |vimtex-complete-glossary| Complete glossary entries |vimtex-complete-glossary|
Autocomplete |vimtex-complete-auto| Autocomplete |vimtex-complete-auto|
Neocomplete |vimtex-complete-neocomplete| Neocomplete and deoplete |vimtex-complete-neocomplete|
YouCompleteMe |vimtex-complete-youcompleteme| YouCompleteMe |vimtex-complete-youcompleteme|
VimCompletesMe |vimtex-complete-vcm| VimCompletesMe |vimtex-complete-vcm|
Folding |vimtex-folding| Folding |vimtex-folding|
@ -1447,10 +1447,13 @@ there is |VimCompletesMe| that overrides <tab> to trigger different built-in
completions, such as the omni-completion by vimtex, depending on the context. completions, such as the omni-completion by vimtex, depending on the context.
See below for descriptions on how to setup these with |vimtex|. See below for descriptions on how to setup these with |vimtex|.
neocomplete~ neocomplete and deoplete~
*vimtex-complete-neocomplete* *vimtex-complete-neocomplete*
*vimtex-complete-deoplete*
|neocomplete| is my preferred choice for an automatic completion engine in vim. |neocomplete| is my preferred choice for an automatic completion engine in vim.
The plugin is available here: https://github.com/Shougo/neocomplete.vim. The plugin is available here: https://github.com/Shougo/neocomplete.vim.
|deoplete| is a similar plugin by Shougo written specifically for Neovim, see
here: https://github.com/Shougo/deoplete.nvim.
The following options may be used to enable automatic completion for LaTeX The following options may be used to enable automatic completion for LaTeX
documents with |neocomplete| and |vimtex|s omni completion function: > documents with |neocomplete| and |vimtex|s omni completion function: >
@ -1470,6 +1473,17 @@ documents with |neocomplete| and |vimtex|s omni completion function: >
\ . '|includestandalone%(\s*\[[^]]*\])?\s*\{[^}]*' \ . '|includestandalone%(\s*\[[^]]*\])?\s*\{[^}]*'
\ . ')' \ . ')'
< <
The |deoplete| option is similar to that of |neocomplete|, but we must append |\m|,
thus: >
if !exists('g:deoplete#omni_patterns')
let g:deoplete#omni_patterns = {}
endif
let g:deoplete#omni_patterns.tex =
\ '\v\\%('
\ ...
\ . ')\m'
<
YouCompleteMe~ YouCompleteMe~
*vimtex-complete-youcompleteme* *vimtex-complete-youcompleteme*
|youcompleteme| is probably the most popular code-completion engine for Vim. The |youcompleteme| is probably the most popular code-completion engine for Vim. The