Skip to content

Commit f13ae54

Browse files
authored
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
1 parent 22673c8 commit f13ae54

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

lua/rest-nvim/init.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ rest.run_file = function(filename, opts)
4545
opts = vim.tbl_deep_extend(
4646
"force", -- use value from rightmost map
4747
defaultRequestOpts,
48+
{ highlight = config.get("highlight").enabled },
4849
opts or {}
4950
)
5051

@@ -151,6 +152,7 @@ rest.run_request = function(req, opts)
151152
opts = vim.tbl_deep_extend(
152153
"force", -- use value from rightmost map
153154
defaultRequestOpts,
155+
{ highlight = config.get("highlight").enabled },
154156
opts or {}
155157
)
156158

0 commit comments

Comments
 (0)