Files
telescope.nvim/lua/tests/pickers/find_files__with_ctrl_n.lua
TJ DeVries 2aa8bcb878 feat: Add better highlighting and new CI abilities (#355)
* Revert "Revert "fix: Better highlights (#344)" (#350)"

This reverts commit 7950fc8ba0.

* better highlights take 2

* fixup

* install fd find for sameness

* add some debug output

* more deterministic

* better ci
2020-12-21 16:03:48 -05:00

25 lines
693 B
Lua

pcall(function() RELOAD('telescope') end)
local builtin = require('telescope.builtin')
local tester = require('telescope.pickers._tests')
local key = 'find_files'
local input = 'fixtures/file<c-p>'
local expected = 'lua/tests/fixtures/file_2.txt'
local get_actual = function()
return vim.fn.fnamemodify(vim.api.nvim_buf_get_name(0), ":.")
end
-- local on_complete_item = tester.picker_feed(input, expected, get_actual, true)
--
-- builtin[key] {
-- on_complete = { on_complete_item }
-- }
tester.builtin_picker('find_files', 'fixtures/file<c-p>', 'lua/tests/fixtures/file_2.txt', function()
return vim.fn.fnamemodify(vim.api.nvim_buf_get_name(0), ":.")
end, {
debug = false,
})