fix(hl): use correct highlighting for inline hints (#613)

This commit is contained in:
Evgeny Naumov 2024-09-21 02:49:07 -04:00 committed by GitHub
parent f97a2d9bc1
commit 8dbfe85dd4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 4 deletions

View File

@ -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, {
hl_group = "Keyword",
virt_text = { { hint, "Keyword" } },
hl_group = "AvanteInlineHint",
virt_text = { { hint, "AvanteInlineHint" } },
virt_text_pos = "right_align",
priority = PRIORITY,
})

View File

@ -703,9 +703,9 @@ function Sidebar:on_mount(opts)
current_apply_extmark_id =
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",
hl_group = "Keyword",
hl_group = "AvanteInlineHint",
priority = PRIORITY,
})
end