Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature: Config to turn off virtual text showing keybindings for ask and edit #682

Closed
srgsanky opened this issue Oct 4, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@srgsanky
Copy link

srgsanky commented Oct 4, 2024

Feature request

Add config to turn off virtual text in visual mode that shows the keybindings to search with avante.

some_text  [<leader>aa: ask, <leader>ae: edit]

I couldn't find a relevant configuration that can do this today https://github.com/yetone/avante.nvim/blob/main/lua/avante/config.lua

The logic that shows the virtual text

api.nvim_create_autocmd({ "CursorMoved", "CursorMovedI" }, {
group = self.augroup,
callback = function(ev)
if not Utils.is_sidebar_buffer(ev.buf) then
if Utils.in_visual_mode() then
self:show_shortcuts_hints_popup()
else
self:close_shortcuts_hints_popup()
end
end
end,
})

Motivation

Virtual text at the end of selected line is useful only at the beginning when the keybindings are not familiar. Later on, it becomes a distraction and I want to turn it off.

Other

No response

@srgsanky srgsanky added the enhancement New feature or request label Oct 4, 2024
@romac
Copy link

romac commented Oct 5, 2024

Setting hints = { enabled = false } worked for me, maybe give it a try?

@yetone yetone closed this as completed Oct 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants