@@ -37,7 +37,7 @@ function M.load_events(file_path)
3737 return true
3838end
3939
40- function M .setup_windows ()
40+ function M .setup_windows (opts )
4141 streaming_renderer .reset ()
4242
4343 M .restore_time_ago = helpers .mock_time_ago ()
@@ -61,11 +61,16 @@ function M.setup_windows()
6161 vim .schedule (function ()
6262 if state .windows and state .windows .output_win then
6363 vim .api .nvim_set_current_win (state .windows .output_win )
64- vim .api .nvim_set_option_value (' number' , true , { win = state .windows .output_win })
65- vim .api .nvim_set_option_value (' statuscolumn' , ' %l%= ' , { win = state .windows .output_win })
64+
65+ if opts .set_statuscolumn ~= false then
66+ vim .notify (' opts: ' .. vim .inspect (opts ))
67+ vim .api .nvim_set_option_value (' number' , true , { win = state .windows .output_win })
68+ vim .api .nvim_set_option_value (' statuscolumn' , ' %l%= ' , { win = state .windows .output_win })
69+ end
6670 pcall (vim .api .nvim_buf_del_keymap , state .windows .output_buf , ' n' , ' <esc>' )
6771 end
6872
73+ state .api_client = state .api_client or {}
6974 state .api_client ._call = empty_fn
7075 end )
7176
@@ -240,7 +245,9 @@ function M.dump_buffer_and_quit()
240245 end )
241246end
242247
243- function M .start ()
248+ function M .start (opts )
249+ opts = opts or {}
250+
244251 local buf = vim .api .nvim_get_current_buf ()
245252 local name = vim .api .nvim_buf_get_name (buf )
246253 local line_count = vim .api .nvim_buf_line_count (buf )
@@ -259,7 +266,7 @@ function M.start()
259266 ' ' ,
260267 ' Commands:' ,
261268 ' :ReplayLoad [file] - Load events (default: tests/data/simple-session.json)' ,
262- ' :ReplayNext - Replay next event (<leader>n) ' ,
269+ " :ReplayNext - Replay next event (<leader>n or '>' ) " ,
263270 ' :ReplayAll [ms] - Replay all events with delay (default 50ms) (<leader>a)' ,
264271 ' :ReplayStop - Stop auto-replay (<leader>s)' ,
265272 ' :ReplayReset - Reset to beginning (<leader>r)' ,
@@ -316,12 +323,13 @@ function M.start()
316323 end , { desc = ' Enable headless mode (dump buffer and quit after replay)' })
317324
318325 vim .keymap .set (' n' , ' <leader>n' , ' :ReplayNext<CR>' )
326+ vim .keymap .set (' n' , ' >' , ' :ReplayNext<CR>' )
319327 vim .keymap .set (' n' , ' <leader>s' , ' :ReplayStop<CR>' )
320328 vim .keymap .set (' n' , ' <leader>a' , ' :ReplayAll<CR>' )
321329 vim .keymap .set (' n' , ' <leader>c' , ' :ReplayClear<CR>' )
322330 vim .keymap .set (' n' , ' <leader>r' , ' :ReplayReset<CR>' )
323331
324- M .setup_windows ()
332+ M .setup_windows (opts )
325333end
326334
327335return M
0 commit comments