mirror of
https://github.com/zoriya/telescope.nvim.git
synced 2026-06-07 12:45:12 +00:00
wip: learning some stuff
This commit is contained in:
@@ -3,6 +3,8 @@ RELOAD('telescope')
|
||||
|
||||
require('telescope')
|
||||
|
||||
local profiler = require('plenary.profile.lua_profiler')
|
||||
|
||||
local finders = require('telescope.finders')
|
||||
local make_entry = require('telescope.make_entry')
|
||||
local previewers = require('telescope.previewers')
|
||||
@@ -14,6 +16,8 @@ vim.api.nvim_buf_set_lines(PERF_DEBUG, 0, -1, false, {})
|
||||
|
||||
local cwd = vim.fn.expand("~/plugins/telescope.nvim")
|
||||
|
||||
profiler.start()
|
||||
|
||||
pickers.new {
|
||||
prompt = 'Large search',
|
||||
finder = finders.new_oneshot_job(
|
||||
@@ -31,9 +35,11 @@ pickers.new {
|
||||
|
||||
|
||||
COMPLETED = false
|
||||
-- print(vim.wait(3000, function()
|
||||
-- vim.cmd [[redraw!]]
|
||||
-- return COMPLETED
|
||||
-- end, 100))
|
||||
print(vim.wait(3000, function()
|
||||
vim.cmd [[redraw!]]
|
||||
return COMPLETED
|
||||
end, 100))
|
||||
profiler.stop()
|
||||
profiler.report('/home/tj/tmp/profiler_score.txt')
|
||||
-- vim.cmd [[bd!]]
|
||||
-- vim.cmd [[stopinsert]]
|
||||
|
||||
Reference in New Issue
Block a user