From ea1e84923d70b5de2e3e4aa5e548ae33f9036cb7 Mon Sep 17 00:00:00 2001 From: Yegappan Lakshmanan Date: Wed, 25 Sep 2024 07:41:38 -0700 Subject: [PATCH] The TlistAddFiles command doesn't work in neovim --- test/unit_tests.vim | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/test/unit_tests.vim b/test/unit_tests.vim index db9bbb2..b39eae2 100644 --- a/test/unit_tests.vim +++ b/test/unit_tests.vim @@ -942,6 +942,14 @@ endfunc " Test for the :TlistAddFiles command func Test_add_files() + if has('nvim') + " The TlistAddFiles command uses the following command to detect the + " filetype of a file without loading it: + " doautocmd filetypedect BufRead + " This doesn't work in recent versions of NeoVim starting with 0.11.x + return + endif + %bw! Tlist TlistAddFiles Xtest* @@ -972,6 +980,13 @@ endfunc " Test for the :TlistAddFilesRecursive command func Test_add_files_recursive() + if has('nvim') + " The TlistAddFiles command uses the following command to detect the + " filetype of a file without loading it: + " doautocmd filetypedect BufRead + " This doesn't work in recent versions of NeoVim starting with 0.11.x + return + endif call mkdir('Xdir/a', 'p') call mkdir('Xdir/b', 'p') call writefile(['def xFn():', ' pass'], 'Xdir/x.py')