wip: learning some stuff

This commit is contained in:
TJ DeVries
2020-09-15 21:44:54 -04:00
parent f59552fe3a
commit db6f5e694a
+10 -4
View File
@@ -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]]