Closed ronisbr closed 1 month ago
Thanks for the issue!
This happens because <C-u>
is by default a special key in key query process and is used to scroll clue window upwards. But only if the window is visible, as you experience.
This can be resolved with at least the following approaches:
require('mini.clue').setup({
-- ...
window = {
scroll_down = '<C-f>',
scroll_up = '<C-b>',
},
})
vim.b.miniclue_config = { window = { scroll_down = '', scroll_up = '' } }
<C-x>
in Insert mode from config.triggers
.Closing as it works as expected.
Hi @echasnovski !
Thank you very much for the quick and detailed answer! It is working perfectly now. Sorry for the noise.
No problem. It is kind of not obvious why this might happen. Searching 'mini.clue' help for '<C-x>'
and '<C-u>'
might have given a clue (pun intended).
The actual solutions are to somehow disable special treatment of '<C-u>'
, which this issue will now serve as reference. So it's good that you asked :)
Contributing guidelines
Module(s)
mini.clue
Description
First of all, thank you @echasnovski for these amazing set of packages!
When the
mini.clue
window opens, I see interference in the completion mechanism used by https://github.com/JuliaEditorSupport/julia-vim to replace LaTeX sequences with UTF-8 symbols. For example, in this case, you can type\alpha<C-x><C-u>
and it is replaced byα
. However, if themini.clue
window is opened, it does not work.Neovim version
0.10
Steps to reproduce
nvim -nu minimal.lua test.jl
\alpha
<C-x><C-u>
fast enough so that themini.clue
window does not open.\alpha
again.<C-x>
wait for themini.clue
window and then type<C-x>
.minimal.lua
Expected behavior
After step 3 and 5,
\alpha
should be replaced byα
.Actual behavior
After step 3,
\alpha
is replaced byα
. However, after step 5, themini.clue
window stays open and the text is not replaced.