diff options
| author | TJ DeVries <devries.timothyj@gmail.com> | 2021-01-11 13:29:37 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-01-11 13:29:37 -0500 |
| commit | 8783bea06e1e0dfa8dfd4834058923088471d832 (patch) | |
| tree | 050096ba649a94bb01e7c0b3a029e9b4eb060029 /lua/tests/pickers | |
| parent | de80a9837cd1d207981c1f6dbf504436f8bfee13 (diff) | |
feat: quickfix (#293)
* feat: quickfix (not implemented)
* [WIP]: Wed 09 Dec 2020 11:11:30 PM EST
* somewhat working linked list impl
* getting closer
* might be working
* might be working for real
* works and implemented basic example
* dont forget to close prompt
* fix descending and add more tests
* test fixes
* fix test
* more logging
* Fix some more tests
* Fix logging messing up tests
* fix: lint
* fix: multi select stuffs
Diffstat (limited to 'lua/tests/pickers')
| -rw-r--r-- | lua/tests/pickers/find_files__readme.lua | 3 | ||||
| -rw-r--r-- | lua/tests/pickers/find_files__scrolling_descending_cycle.lua | 14 | ||||
| -rw-r--r-- | lua/tests/pickers/find_files__with_ctrl_n.lua | 2 |
3 files changed, 17 insertions, 2 deletions
diff --git a/lua/tests/pickers/find_files__readme.lua b/lua/tests/pickers/find_files__readme.lua index 620c3be..534ee3e 100644 --- a/lua/tests/pickers/find_files__readme.lua +++ b/lua/tests/pickers/find_files__readme.lua @@ -1,7 +1,8 @@ local tester = require('telescope.pickers._test') +local helper = require('telescope.pickers._test_helpers') tester.builtin_picker('find_files', 'README.md', { post_close = { - {'README.md', function() return vim.fn.fnamemodify(vim.api.nvim_buf_get_name(0), ":.") end }, + {'README.md', helper.get_file }, } }) diff --git a/lua/tests/pickers/find_files__scrolling_descending_cycle.lua b/lua/tests/pickers/find_files__scrolling_descending_cycle.lua new file mode 100644 index 0000000..7740003 --- /dev/null +++ b/lua/tests/pickers/find_files__scrolling_descending_cycle.lua @@ -0,0 +1,14 @@ +require('plenary.reload').reload_module('plenary') +require('plenary.reload').reload_module('telescope') + +local tester = require('telescope.pickers._test') +local helper = require('telescope.pickers._test_helpers') + +tester.builtin_picker('find_files', 'telescope<c-n>', { + post_close = { + tester.not_ { 'plugin/telescope.vim', helper.get_file }, + }, +}, { + sorting_strategy = "descending", + scroll_strategy = "cycle", +}) diff --git a/lua/tests/pickers/find_files__with_ctrl_n.lua b/lua/tests/pickers/find_files__with_ctrl_n.lua index 78a31fd..5d93f60 100644 --- a/lua/tests/pickers/find_files__with_ctrl_n.lua +++ b/lua/tests/pickers/find_files__with_ctrl_n.lua @@ -3,7 +3,7 @@ local helper = require('telescope.pickers._test_helpers') tester.builtin_picker('find_files', 'fixtures/file<c-p>', { post_close = { - { 'lua/tests/fixtures/file_2.txt', helper.get_file } + { 'lua/tests/fixtures/file_abc.txt', helper.get_selection_value }, }, }) |
