-
Is there a way I can set up a key to peek the precognition keys? I don't want it on all the time. Just when I forgot the jump bind. https://github.com/tris203/precognition.nvim?tab=readme-ov-file#peeking |
Beta Was this translation helpful? Give feedback.
Answered by
jahanson
Feb 1, 2025
Replies: 2 comments
-
You can simply add a key to your configuration using vim.keymaps. "<leader>rp" = {
action = ":lua require("precognition").peek()";
desc = "Peek recognition";
}; This should do the trick. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Alright! That helped a lot, I managed to find out how to keep it enabled but not start it visible by default. {
settings.vim = {
keymaps = [
{
mode = "n";
key = "<leader>rp";
action = ":lua require('precognition').peek()<CR>";
desc = "Peek recognition";
}
];
motion = {
precognition = {
enable = true;
setupOpts.startVisible = false;
};
};
};
} |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
jahanson
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Alright! That helped a lot, I managed to find out how to keep it enabled but not start it visible by default.