File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ local M = {}
33local config = {
44 result_split_horizontal = false ,
55 result_split_in_place = false ,
6+ stay_in_current_window_after_split = false ,
67 skip_ssl_verification = false ,
78 encode_url = true ,
89 highlight = {
Original file line number Diff line number Diff line change @@ -241,7 +241,11 @@ local function create_callback(curl_cmd, opts)
241241 if config .get (" result_split_in_place" ) then
242242 cmd_split = [[ bel ]] .. cmd_split
243243 end
244- vim .cmd (cmd_split .. res_bufnr )
244+ if config .get (" stay_in_current_window_after_split" ) then
245+ vim .cmd (cmd_split .. res_bufnr .. " | wincmd p" )
246+ else
247+ vim .cmd (cmd_split .. res_bufnr )
248+ end
245249 -- Set unmodifiable state
246250 vim .api .nvim_set_option_value (" modifiable" , false , { buf = res_bufnr })
247251 end
You can’t perform that action at this time.
0 commit comments