diff --git a/autoload/vimtex/complete.vim b/autoload/vimtex/complete.vim index 541e637..7690efc 100644 --- a/autoload/vimtex/complete.vim +++ b/autoload/vimtex/complete.vim @@ -433,6 +433,7 @@ function! s:labels_extract(file) " {{{1 let lines = filter(lines, 'v:val =~# ''\\newlabel{''') let lines = filter(lines, 'v:val !~# ''@cref''') let lines = filter(lines, 'v:val !~# ''sub@''') + let lines = filter(lines, 'v:val !~# ''tocindent-\?[0-9]''') let lines = map(lines, 's:tex2unicode(v:val)') for line in lines let tree = s:tex2tree(line)[1:]