From 8dbfe85dd4272998c13dc18627b6232484845001 Mon Sep 17 00:00:00 2001 From: Evgeny Naumov Date: Sat, 21 Sep 2024 02:49:07 -0400 Subject: [PATCH] fix(hl): use correct highlighting for inline hints (#613) --- lua/avante/diff.lua | 4 ++-- lua/avante/sidebar.lua | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lua/avante/diff.lua b/lua/avante/diff.lua index ea5dbf9..6dde475 100644 --- a/lua/avante/diff.lua +++ b/lua/avante/diff.lua @@ -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, }) diff --git a/lua/avante/sidebar.lua b/lua/avante/sidebar.lua index 77e3c3d..1abf93e 100644 --- a/lua/avante/sidebar.lua +++ b/lua/avante/sidebar.lua @@ -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 = { { " [: apply this, : apply all] ", "Keyword" } }, + virt_text = { { " [: apply this, : apply all] ", "AvanteInlineHint" } }, virt_text_pos = "right_align", - hl_group = "Keyword", + hl_group = "AvanteInlineHint", priority = PRIORITY, }) end