From 31f2e9139c178bf51a33350d3d3b7b9c4dfd22e9 Mon Sep 17 00:00:00 2001 From: TJ DeVries Date: Fri, 11 Sep 2020 00:18:54 -0400 Subject: [PATCH] temp: add PERF --- plugin/telescope.vim | 31 +------------------------------ 1 file changed, 1 insertion(+), 30 deletions(-) diff --git a/plugin/telescope.vim b/plugin/telescope.vim index 347f887..76a100e 100644 --- a/plugin/telescope.vim +++ b/plugin/telescope.vim @@ -13,34 +13,5 @@ cnoremap (TelescopeFuzzyCommandSearch) e \ default_text = [=[" . escape(getcmdline(), '"') . "]=] \ }" -" let s:term_command = "rg preview_quit_map -l | fzf --preview 'bat --color=always --style=grid {-1}' --print0" -" let s:term_command = "rg preview_quit_map -l | fzf --preview 'bat --color=always --style=grid {-1}' > file.txt" -" let s:term_command = "(rg preview_quit_map -l | fzf --preview 'bat --color=always --style=grid {-1}')" -" function! s:on_exit() abort -" let g:result = readfile('file.txt') -" endfunction - -" function! TestFunc() abort -" let g:term_output_stdout = [] -" let g:term_output_stderr = [] -" let g:term_output_onexit = [] - -" vnew -" let term_id = termopen(s:term_command, { -" \ 'on_stdout': { j, d, e -> add(g:term_output_stdout, d) }, -" \ 'on_stderr': { j, d, e -> add(g:term_output_stderr, d) }, -" \ 'on_exit': { j, d, e -> s:on_exit() }, -" \ 'stdout_buffered': v:false, -" \ }) -" endfunction - -" function! PrintStuff() abort -" echo len(g:term_output_stdout) len(g:term_output_stderr) len(g:term_output_onexit) -" endfunction - -" call TestFunc() - -" echo g:term_output_stdout[-1] -" echo g:term_output_stderr -" echo g:term_output_onexit +lua PERF = function(...) end