From f13ae54ae2545d4d612593d4a442cbb33a1b5b65 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bendeg=C3=BAz=20Cseresny=C3=A9s?= Date: Fri, 15 Sep 2023 15:16:53 +0200 Subject: [PATCH] Fix request hightlight (#230) run_request and run_file request opts did not use the highlight.enabled setting from config, the default requestOpts prevented the current request to be hignlighted. Added the missing config to the creation of final request ops --- lua/rest-nvim/init.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lua/rest-nvim/init.lua b/lua/rest-nvim/init.lua index 5d7ca9dc..cb8b1888 100644 --- a/lua/rest-nvim/init.lua +++ b/lua/rest-nvim/init.lua @@ -45,6 +45,7 @@ rest.run_file = function(filename, opts) opts = vim.tbl_deep_extend( "force", -- use value from rightmost map defaultRequestOpts, + { highlight = config.get("highlight").enabled }, opts or {} ) @@ -151,6 +152,7 @@ rest.run_request = function(req, opts) opts = vim.tbl_deep_extend( "force", -- use value from rightmost map defaultRequestOpts, + { highlight = config.get("highlight").enabled }, opts or {} )