I broke up with neovim....vim is my best friend now
This commit is contained in:
24
dot_vim/plugged/vimtex/test/test-doc/test_usepackage.vim
Normal file
24
dot_vim/plugged/vimtex/test/test-doc/test_usepackage.vim
Normal file
@@ -0,0 +1,24 @@
|
||||
set nocompatible
|
||||
let &rtp = '../..,' . &rtp
|
||||
filetype plugin on
|
||||
|
||||
nnoremap q :qall!<cr>
|
||||
silent edit test.tex
|
||||
|
||||
if empty($INMAKE) | finish | endif
|
||||
|
||||
call cursor([3, 15])
|
||||
call assert_equal({
|
||||
\ 'candidates': ['amsmath', 'mathtools'],
|
||||
\ 'type': 'usepackage',
|
||||
\ 'selected': 'amsmath'
|
||||
\}, vimtex#doc#get_context())
|
||||
|
||||
call cursor([3, 25])
|
||||
call assert_equal({
|
||||
\ 'candidates': ['amsmath', 'mathtools'],
|
||||
\ 'type': 'usepackage',
|
||||
\ 'selected': 'mathtools'
|
||||
\}, vimtex#doc#get_context())
|
||||
|
||||
call vimtex#test#finished()
|
||||
Reference in New Issue
Block a user