File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -36,6 +36,7 @@ local config = {
3636 env_file = " .env" ,
3737 custom_dynamic_variables = {},
3838 yank_dry_run = true ,
39+ search_back = true ,
3940}
4041
4142--- Get a configuration value
Original file line number Diff line number Diff line change @@ -218,7 +218,12 @@ local function start_request(bufnr, linenumber)
218218 local oldlinenumber = linenumber
219219 utils .move_cursor (bufnr , linenumber )
220220
221- local res = vim .fn .search (" ^GET\\ |^POST\\ |^PUT\\ |^PATCH\\ |^DELETE" , " cn" )
221+ local res
222+ if config .get (" search_back" ) then
223+ res = vim .fn .search (" ^GET\\ |^POST\\ |^PUT\\ |^PATCH\\ |^DELETE" , " cb" )
224+ else
225+ res = vim .fn .search (" ^GET\\ |^POST\\ |^PUT\\ |^PATCH\\ |^DELETE" , " cn" )
226+ end
222227 -- restore cursor position
223228 utils .move_cursor (bufnr , oldlinenumber )
224229
You can’t perform that action at this time.
0 commit comments