1

Refresh generated neovim config

This commit is contained in:
2024-08-15 13:01:03 +02:00
parent 64b51cf53a
commit f5af8e2b28
1836 changed files with 38979 additions and 31094 deletions

View File

@ -4,3 +4,7 @@ test/test-compiler/latexrun
test/test-syntax/syntax/
test/test-textobj-targets/targets.vim/
test/issues
test/test-completion-bibtex/test_parser_*
test/test-quickfix-fix-path/test_hbox*
*.log

View File

@ -78,7 +78,7 @@ endfunction
let s:completer_bib = {
\ 'patterns' : [
\ '\v\\%(\a*cite|Cite)\a*\*?%(\s*\[[^]]*\]){0,2}\s*\{[^}]*$',
\ '\v\\%(\a*cite|Cite)\a*\*?%(\s*\[[^]]*\]|\s*\<[^>]*\>){0,2}\s*\{[^}]*$',
\ '\v\\%(\a*cites|Cites)%(\s*\([^)]*\)){0,2}'
\ . '%(%(\s*\[[^]]*\]){0,2}\s*\{[^}]*\})*'
\ . '%(\s*\[[^]]*\]){0,2}\s*\{[^}]*$',

View File

@ -24,8 +24,12 @@ function! vimtex#jobs#start(cmd, ...) abort " {{{1
let l:job.wait_timeout = str2nr(get(l:opts, 'wait_timeout', 5000))
let l:job.capture_output = get(l:opts, 'capture_output', v:false)
let l:job.detached = get(l:opts, 'detached', v:false)
call l:job.start()
return l:job.start()
" Add some minor delay to ensure the job was properly started
sleep 100m
return l:job
endfunction
" }}}1

View File

@ -8,7 +8,7 @@ function! vimtex#jobs#neovim#new(cmd) abort " {{{1
let l:job = deepcopy(s:job)
let l:job.cmd = has('win32')
\ ? 'cmd /s /c "' . a:cmd . '"'
\ : ['sh', '-c', a:cmd]
\ : ['/bin/sh', '-c', a:cmd]
return l:job
endfunction

View File

@ -8,7 +8,7 @@ function! vimtex#jobs#vim#new(cmd) abort " {{{1
let l:job = deepcopy(s:job)
let l:job.cmd = has('win32')
\ ? 'cmd /s /c "' . a:cmd . '"'
\ : ['sh', '-c', a:cmd]
\ : ['/bin/sh', '-c', a:cmd]
return l:job
endfunction

View File

@ -38,7 +38,7 @@ let g:vimtex#re#cite_cmd = '\v%(%(\a*cite|Cite)\a*|bibentry|%(text|block|%(for|h
" {{{1 Completion regexes
let g:vimtex#re#neocomplete =
\ '\v\\%('
\ . '%(\a*cite|Cite)\a*\*?%(\s*\[[^]]*\]){0,2}\s*\{[^}]*'
\ . '%(\a*cite|Cite)\a*\*?%(\s*\[[^]]*\]|\s*\<[^>]*\>){0,2}\s*\{[^}]*'
\ . '|%(\a*cites|Cites)%(\s*\([^)]*\)){0,2}'
\ . '%(%(\s*\[[^]]*\]){0,2}\s*\{[^}]*\})*'
\ . '%(\s*\[[^]]*\]){0,2}\s*\{[^}]*'

View File

@ -118,6 +118,7 @@ endfunction
function! s:viewer._forward_search(outfile) dict abort " {{{1
if !executable('xdotool') | return | endif
if !executable('synctex') | return | endif
if self.xwin_id <= 0 | return | endif
let self.cmd_synctex_view = 'synctex view -i '
\ . (line('.') + 1) . ':'