diff options
| author | TJ DeVries <devries.timothyj@gmail.com> | 2020-09-29 22:52:38 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-09-29 22:52:38 -0400 |
| commit | ae7fd0d27a72fa3088e84992eb5040853164dad6 (patch) | |
| tree | 8b2ecd59ffee6c00fa8fee5f2b570edee5da8724 /lua/telescope/init.lua | |
| parent | 2ce23696de096733e32135b2f9698a9cca6fdcd4 (diff) | |
feat: Add status, better debug, and some associated refactors
* [WIP]: Mon 28 Sep 2020 01:08:24 PM EDT
* add much much better tracking. so much less hax
* status updates, oneshot job updates, etc.
* remove temp function
* add status function
* asdfasdfasdf
Diffstat (limited to 'lua/telescope/init.lua')
| -rw-r--r-- | lua/telescope/init.lua | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/lua/telescope/init.lua b/lua/telescope/init.lua index ecec931..d6f0192 100644 --- a/lua/telescope/init.lua +++ b/lua/telescope/init.lua @@ -51,38 +51,4 @@ function telescope.setup(opts) require('telescope.config').set_defaults(opts.defaults) end --- Until I have better profiling stuff, this will have to do. -PERF = function(...) end -PERF_DEBUG = PERF_DEBUG or nil -START = nil - -if PERF_DEBUG then - PERF = function(...) - local new_time = (vim.loop.hrtime() - START) / 1E9 - if select('#', ...) == 0 then - vim.schedule(function() - vim.api.nvim_buf_set_lines(PERF_DEBUG, -1, -1, false, { '' }) - end) - return - end - - local to_insert = '' - if START then - to_insert = tostring(new_time) .. ' | ' - end - - for _, v in ipairs({...}) do - if type(v) == 'table' then - to_insert = to_insert .. tostring(#v) .. ' | ' - else - to_insert = to_insert .. tostring(v) .. ' | ' - end - end - - vim.schedule(function() - vim.api.nvim_buf_set_lines(PERF_DEBUG, -1, -1, false, { to_insert }) - end) - end -end - return telescope |
