fix(hl): use correct highlighting for inline hints (#613)
This commit is contained in:
parent
f97a2d9bc1
commit
8dbfe85dd4
@ -292,8 +292,8 @@ local function register_cursor_move_events(bufnr)
|
|||||||
)
|
)
|
||||||
|
|
||||||
show_keybinding_hint_extmark_id = api.nvim_buf_set_extmark(bufnr, KEYBINDING_NAMESPACE, lnum - 1, -1, {
|
show_keybinding_hint_extmark_id = api.nvim_buf_set_extmark(bufnr, KEYBINDING_NAMESPACE, lnum - 1, -1, {
|
||||||
hl_group = "Keyword",
|
hl_group = "AvanteInlineHint",
|
||||||
virt_text = { { hint, "Keyword" } },
|
virt_text = { { hint, "AvanteInlineHint" } },
|
||||||
virt_text_pos = "right_align",
|
virt_text_pos = "right_align",
|
||||||
priority = PRIORITY,
|
priority = PRIORITY,
|
||||||
})
|
})
|
||||||
|
@ -703,9 +703,9 @@ function Sidebar:on_mount(opts)
|
|||||||
|
|
||||||
current_apply_extmark_id =
|
current_apply_extmark_id =
|
||||||
api.nvim_buf_set_extmark(self.result.bufnr, CODEBLOCK_KEYBINDING_NAMESPACE, block.start_line, -1, {
|
api.nvim_buf_set_extmark(self.result.bufnr, CODEBLOCK_KEYBINDING_NAMESPACE, block.start_line, -1, {
|
||||||
virt_text = { { " [<a>: apply this, <A>: apply all] ", "Keyword" } },
|
virt_text = { { " [<a>: apply this, <A>: apply all] ", "AvanteInlineHint" } },
|
||||||
virt_text_pos = "right_align",
|
virt_text_pos = "right_align",
|
||||||
hl_group = "Keyword",
|
hl_group = "AvanteInlineHint",
|
||||||
priority = PRIORITY,
|
priority = PRIORITY,
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user