Skip to content

Commit 78ad115

Browse files
fix: rest-nvim.result is removed
1 parent ec41cec commit 78ad115

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

lua/rest-nvim/ui/help.lua

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,13 @@
88

99
local help = {}
1010

11-
local result = require("rest-nvim.result")
1211
local logger = require("rest-nvim.logger")
1312
local config = require("rest-nvim.config")
1413

14+
local function set_lines(buffer, lines)
15+
vim.api.nvim_buf_set_lines(buffer, 0, -1, false, lines)
16+
end
17+
1518
---Get or create a new request window help buffer
1619
local function get_or_create_buf()
1720
local tmp_name = "rest_winbar_help"
@@ -48,7 +51,7 @@ local function get_or_create_buf()
4851
"",
4952
"**Press `q` to close this help window**",
5053
}
51-
result.write_block(new_bufnr, buf_content, false, false)
54+
set_lines(new_bufnr, buf_content)
5255

5356
return new_bufnr
5457
end

0 commit comments

Comments
 (0)