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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user