-
Contributing guidelines
Module(s)mini.clue QuestionIs there a way to write a function or user command that enters a submode? I added to my config a submode for moving between git hunks and staging them. I'm trying to add a way to open nvim already in this submode, for smoother work with lazygit. I've tried using nvim_input to input submode's prefix, or to read first keypress and input prefix..keypress, but this doesn't trigger mini.clue so it doesn't leave me in submode |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 7 replies
-
Using What 'mini.clue' setup do you have and what
This may be another source of issues. For example, make sure that 'mini.clue' is not lazy loaded (i.e. is set up before |
Beta Was this translation helpful? Give feedback.
-
|
Sorry for bothering again, but there is one thing I don't understand. After this, if I run As you said, submode_resize works as expected, but for some reason submodes that I create myself don't. |
Beta Was this translation helpful? Give feedback.
I retested and now nvim_input works. Not sure what I did wrong before.
This might be my issue. I wrote user command that calls vim.api.nvim_input(prefix) and it now works when called in session, but when starting nvim with -c option submode doesn't work.