Fixed misplaced end
This commit is contained in:
parent
9adb558ea7
commit
c1e258dc90
@ -112,16 +112,15 @@ local function update_chat_window(new_content)
|
|||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
end, { buffer = chat_bufnr, nowait = true })
|
end, { buffer = chat_bufnr, nowait = true })
|
||||||
end
|
|
||||||
|
|
||||||
-- Make buffer modifiable
|
-- Make buffer modifiable
|
||||||
vim.api.nvim_buf_set_option(chat_bufnr, 'modifiable', true)
|
vim.api.nvim_buf_set_option(chat_bufnr, 'modifiable', true)
|
||||||
|
|
||||||
-- Initialize with content (without separator)
|
-- Initialize with content (without separator)
|
||||||
vim.api.nvim_buf_set_lines(chat_bufnr, 0, -1, false, vim.split(new_content, "\n"))
|
vim.api.nvim_buf_set_lines(chat_bufnr, 0, -1, false, vim.split(new_content, "\n"))
|
||||||
|
|
||||||
-- Make buffer unmodifiable
|
-- Make buffer unmodifiable
|
||||||
vim.api.nvim_buf_set_option(chat_bufnr, 'modifiable', false)
|
vim.api.nvim_buf_set_option(chat_bufnr, 'modifiable', false)
|
||||||
else
|
else
|
||||||
-- Make buffer modifiable
|
-- Make buffer modifiable
|
||||||
vim.api.nvim_buf_set_option(chat_bufnr, 'modifiable', true)
|
vim.api.nvim_buf_set_option(chat_bufnr, 'modifiable', true)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user