summaryrefslogtreecommitdiff
path: root/scratch
diff options
context:
space:
mode:
authorSenghan Bright <senghan.bright@deltaprojects.com>2021-04-09 19:33:10 +0200
committerGitHub <noreply@github.com>2021-04-09 13:33:10 -0400
commit5bd6f5ca9828ea02f2c54d616ad65c72a5cdd7fb (patch)
tree4308ec84d1dfb040cf9297117133251966e3deae /scratch
parentba1e674e68a251ce7dcaf44a7b815431ba563f8f (diff)
feat: add icons to git_status finder (#401)
* add icons to git_status finder * fix lint warning * fix incorrect removed icon * refactor, more states/icons * refactor, widen columns to allow for 3char width icons * attempted col width fix * fixup: small comments Co-authored-by: TJ DeVries <devries.timothyj@gmail.com>
Diffstat (limited to 'scratch')
-rw-r--r--scratch/old_perf_debug36
1 files changed, 0 insertions, 36 deletions
diff --git a/scratch/old_perf_debug b/scratch/old_perf_debug
deleted file mode 100644
index 3561a98..0000000
--- a/scratch/old_perf_debug
+++ /dev/null
@@ -1,36 +0,0 @@
-
-
--- 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
-