Skip to content

Commit

Permalink
Fix request hightlight (#230)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
aPisC authored Sep 15, 2023
1 parent 22673c8 commit f13ae54
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lua/rest-nvim/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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 {}
)

Expand Down Expand Up @@ -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 {}
)

Expand Down

0 comments on commit f13ae54

Please sign in to comment.