Skip to content

How can I turn of gr_clue? #1512

Closed Answered by echasnovski
winkee01 asked this question in Q&A
Discussion options

You must be logged in to vote

For example, when I set a keybinding using "gr" to jump to a reference, like below, I will have to unnecessarily press one more key!

vim.keymap.set({ "gr", "vim.lsp.buf.references, desc = "References", nowait = true})

The core issue is not these clues but the fact that Neovim>=0.11 has all those four (at the moment) mappings built-in. So 'mini.clue' auto-detects them and treats user typing gr as if there might be next key (although mapping is done with nowait = true which 'mini.clue' doesn't really support when computing clues).

The solution here is to manually delete all those new built-in mappings:

vim.keymap.del('n', 'gri')
vim.keymap.del('n', 'grr')
vim.keymap.del('n', 'gra')
vim.k…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by echasnovski
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested mini.clue
2 participants