Skip to content

Commit

Permalink
fix(hint): consistent sidebar submit (yetone#205)
Browse files Browse the repository at this point in the history
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
  • Loading branch information
aarnphm authored Aug 25, 2024
1 parent 305d972 commit 80250de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lua/avante/sidebar.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1366,8 +1366,8 @@ function Sidebar:create_input()
local function show_hint()
close_hint() -- Close the existing hint window

local hint_text = vim.fn.mode() ~= "i" and Config.mappings.submit.normal
or Config.mappings.submit.insert .. ": submit"
local hint_text = (vim.fn.mode() ~= "i" and Config.mappings.submit.normal or Config.mappings.submit.insert)
.. ": submit"

local buf = api.nvim_create_buf(false, true)
api.nvim_buf_set_lines(buf, 0, -1, false, { hint_text })
Expand Down

0 comments on commit 80250de

Please sign in to comment.