From 3bcbd2de99ce6fe1ee4f6c2d356131e8bbeb13c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bendeg=C3=BAz=20Cseresny=C3=A9s?= Date: Thu, 14 Sep 2023 11:35:05 +0200 Subject: [PATCH] Fix request hightlight 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 {} )