Skip to content

Commit

Permalink
fix: result_split_horizontal config getter
Browse files Browse the repository at this point in the history
  • Loading branch information
ybbond committed Mar 29, 2022
1 parent 2826f69 commit 948cf14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/rest-nvim/curl/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ local function create_callback(method, url)
-- Only open a new split if the buffer is not loaded into the current window
if vim.fn.bufwinnr(res_bufnr) == -1 then
local cmd_split = [[vert sb]]
if config.result_split_horizontal then
if config.get("result_split_horizontal") then
cmd_split = [[sb]]
end
vim.cmd(cmd_split .. res_bufnr)
Expand Down

0 comments on commit 948cf14

Please sign in to comment.