Unable to Configure Separate blink-cmp and luasnip Hotkeys #1200
Unanswered
amorous-apple
asked this question in
Q&A
Replies: 1 comment
-
|
You can jump between luasnip "tab stop" (I did not know it was called that) by making your own keybind: vim.keymaps = [
{
mode = ["i"];
key = "<C-;>";
action = "<Plug>luasnip-jump-next";
silent = true;
}
# "<Plug>luasnip-jump-prev for going back
];more details in luasnip docs |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I've been trying to set up luasnip so that I can use snippets for writing typst. Everything was going surprisingly smoothly until I needed to configure the hotkeys for luasnip tapstops. I tried a bunch of different syntaxes and options online (and I of course checked the documentation and tried options under luasnip.setupOpts) but I wasn't able to get something to work. I even searched github for files containing both "nvf" and "luasnip", but I wasn't able to find any examples.
I was able to get snippets to auto-trigger and detect the math environment, but hotkeys to jump between the tab stops seemed to always come from the blink-cmp mappings. This causes a conflict since typing something would often result in the autocompletion menu popping up and then pressing the key that I had set to 'next' would select the next option in the menu instead of the next tab stop.
This is my current nvf configuration file. My goal is to use and for going up and down the autcompletion menu, using to select an option and using and to go forward and backward through the luasnip tabstops. I'm new to both nix and nvf, so there's a good chance that I've missed something obvious. If somebody has some recommendations for where I could find the appropriate sub-options myself next time, I would be grateful.
I also attached the snippet file in case it's useful for testing something.
base.lua.txt
Beta Was this translation helpful? Give feedback.
All reactions