fix error
This commit is contained in:
@@ -19,7 +19,8 @@ end
|
|||||||
|
|
||||||
function M.debug_log(msg)
|
function M.debug_log(msg)
|
||||||
if conf.improved_debug and debug_bufnr then
|
if conf.improved_debug and debug_bufnr then
|
||||||
vim.api.nvim_buf_set_lines(debug_bufnr, -1, -1, false, { msg })
|
local lines = vim.split(msg, "\n")
|
||||||
|
vim.api.nvim_buf_set_lines(debug_bufnr, -1, -1, false, lines)
|
||||||
else
|
else
|
||||||
if conf.debug then
|
if conf.debug then
|
||||||
vim.api.nvim_out_write("[chatgpt_nvim:debug] " .. msg .. "\n")
|
vim.api.nvim_out_write("[chatgpt_nvim:debug] " .. msg .. "\n")
|
||||||
|
|||||||
Reference in New Issue
Block a user