Adding more features

This commit is contained in:
2026-01-15 20:58:56 -05:00
parent 84c8bcf92c
commit f5df1a9ac0
40 changed files with 9145 additions and 458 deletions

View File

@@ -312,7 +312,9 @@ local function append_log_to_output(entry)
}
local icon = icons[entry.level] or ""
local formatted = string.format("[%s] %s %s", entry.timestamp, icon, entry.message)
-- Sanitize message - replace newlines with spaces to prevent nvim_buf_set_lines error
local sanitized_message = entry.message:gsub("\n", " "):gsub("\r", "")
local formatted = string.format("[%s] %s %s", entry.timestamp, icon, sanitized_message)
vim.schedule(function()
if not state.output_buf or not vim.api.nvim_buf_is_valid(state.output_buf) then