Debugging the output
This commit is contained in:
parent
2e6580d6b4
commit
fa39db0e19
|
@ -164,7 +164,11 @@ function M.lookup()
|
|||
b = y
|
||||
end
|
||||
|
||||
local current_line = 2
|
||||
api.nvim_buf_set_lines(buf, 2, -1, false, {
|
||||
"Found entries: " .. #dates,
|
||||
})
|
||||
|
||||
local current_line = 3
|
||||
for x = 1, #dates do
|
||||
api.nvim_buf_set_lines(buf, current_line, -1, false, titles[x])
|
||||
current_line = current_line + 1
|
||||
|
@ -177,6 +181,7 @@ function M.lookup()
|
|||
api.nvim_buf_set_lines(buf, current_line, -1, false, "---")
|
||||
current_line = current_line + 1
|
||||
end
|
||||
api.nvim_buf_set_lines(buf, current_line, -1, false, "End of feed entries.")
|
||||
|
||||
-- disable write / make buffer readonly
|
||||
api.nvim_buf_set_option(buf, "modifiable", false)
|
||||
|
|
Loading…
Reference in New Issue