@@ -21,10 +21,9 @@ local function get_importfile_name(bufnr, start_line, stop_line)
2121 local fileimport_inlined
2222 fileimport_line = vim .api .nvim_buf_get_lines (bufnr , import_line - 1 , import_line , false )
2323 -- check second char against '@' (meaning "dont inline")
24- fileimport_inlined = string.sub (fileimport_line [1 ], 2 , 2 ) ~= ' @ '
24+ fileimport_inlined = string.sub (fileimport_line [1 ], 2 , 2 ) ~= " @ "
2525 fileimport_string = string.gsub (fileimport_line [1 ], " <@?" , " " , 1 ):gsub (" ^%s+" , " " ):gsub (" %s+$" , " " )
2626 return fileimport_inlined , fileimport_string
27-
2827 end
2928 return nil
3029end
@@ -42,7 +41,7 @@ local function get_body(bufnr, start_line, stop_line)
4241 local inline , importfile = get_importfile_name (bufnr , start_line , stop_line )
4342 local lines -- an array of strings
4443 if importfile ~= nil then
45- return { external = true ; inline = inline ; filename_tpl = importfile }
44+ return { external = true , inline = inline , filename_tpl = importfile }
4645 else
4746 lines = vim .api .nvim_buf_get_lines (bufnr , start_line , stop_line , false )
4847 end
@@ -63,7 +62,7 @@ local function get_body(bufnr, start_line, stop_line)
6362 end
6463 end
6564
66- return { external = false ; inline = false ; body_tpl = lines2 }
65+ return { external = false , inline = false , body_tpl = lines2 }
6766end
6867
6968local function get_response_script (bufnr , start_line , stop_line )
@@ -285,9 +284,9 @@ M.buf_get_request = function(bufnr, curpos)
285284
286285 local curl_args , body_start = get_curl_args (bufnr , headers_end , end_line )
287286
288- local host = headers [utils .key (headers ," host" )] or " "
287+ local host = headers [utils .key (headers , " host" )] or " "
289288 parsed_url .url = host :gsub (" %s+" , " " ) .. parsed_url .url
290- headers [utils .key (headers ," host" )] = nil
289+ headers [utils .key (headers , " host" )] = nil
291290
292291 local body = get_body (bufnr , body_start , end_line )
293292
@@ -302,17 +301,17 @@ M.buf_get_request = function(bufnr, curpos)
302301 end
303302
304303 local req = {
305- method = parsed_url .method ,
306- url = parsed_url .url ,
307- http_version = parsed_url .http_version ,
308- headers = headers ,
309- raw = curl_args ,
310- body = body ,
311- bufnr = bufnr ,
312- start_line = start_line ,
313- end_line = end_line ,
314- script_str = script_str ,
315- }
304+ method = parsed_url .method ,
305+ url = parsed_url .url ,
306+ http_version = parsed_url .http_version ,
307+ headers = headers ,
308+ raw = curl_args ,
309+ body = body ,
310+ bufnr = bufnr ,
311+ start_line = start_line ,
312+ end_line = end_line ,
313+ script_str = script_str ,
314+ }
316315
317316 return true , req
318317end
@@ -393,7 +392,7 @@ M.highlight = function(bufnr, start_line, end_line)
393392 higroup ,
394393 { start_line - 1 , 0 },
395394 { end_line - 1 , end_column },
396- { regtype = " c" ; inclusive = false }
395+ { regtype = " c" , inclusive = false }
397396 )
398397
399398 vim .defer_fn (function ()
0 commit comments