improve(prompt_input): support to customize the border and body highlight (#1846)
This commit is contained in:
@@ -25,6 +25,8 @@ local Highlights = {
|
||||
BUTTON_PRIMARY_HOVER = { name = "AvanteButtonPrimaryHover", fg = "#1e222a", bg = "#56b6c2" },
|
||||
BUTTON_DANGER = { name = "AvanteButtonDanger", fg = "#1e222a", bg = "#ABB2BF" },
|
||||
BUTTON_DANGER_HOVER = { name = "AvanteButtonDangerHover", fg = "#1e222a", bg = "#e06c75" },
|
||||
AVANTE_PROMPT_INPUT = { name = "AvantePromptInput" },
|
||||
AVANTE_PROMPT_INPUT_BORDER = { name = "AvantePromptInputBorder", link = "NormalFloat" },
|
||||
AVANTE_SIDEBAR_WIN_SEPARATOR = {
|
||||
name = "AvanteSidebarWinSeparator",
|
||||
fg_link_bg = "NormalFloat",
|
||||
|
||||
@@ -117,7 +117,11 @@ function PromptInput:open()
|
||||
|
||||
api.nvim_set_option_value("wrap", false, { win = winid })
|
||||
api.nvim_set_option_value("winblend", 5, { win = winid })
|
||||
api.nvim_set_option_value("winhighlight", "FloatBorder:NormalFloat", { win = winid })
|
||||
api.nvim_set_option_value(
|
||||
"winhighlight",
|
||||
"FloatBorder:AvantePromptInputBorder,Normal:AvantePromptInput",
|
||||
{ win = winid }
|
||||
)
|
||||
api.nvim_set_option_value("cursorline", true, { win = winid })
|
||||
api.nvim_set_option_value("modifiable", true, { buf = bufnr })
|
||||
|
||||
|
||||
Reference in New Issue
Block a user