refactor(promptLogger): move highlight definition into promptLogger code

Separate managing of a sign (">") placement for the input buffer and
defining a highlight for prompt logger and move the latter into
PromptLogger.init().
This commit is contained in:
Dmitry Torokhov
2025-10-07 12:18:56 -07:00
parent 7f5213f1fe
commit b08dc79088
2 changed files with 11 additions and 9 deletions

View File

@@ -2934,15 +2934,7 @@ function Sidebar:create_input_container()
local group = "avante_input_prompt_group"
fn.sign_unplace(group, { buffer = bufnr })
fn.sign_place(0, group, "AvanteInputPromptSign", bufnr, { lnum = 1 })
vim.api.nvim_set_hl(0, "AvantePromptInputHL", {
fg = "#ff7700",
bg = "#333333",
bold = true,
italic = true,
underline = true,
})
end
place_sign_at_first_line(self.containers.input.bufnr)