How to get back after gd (goto definition)? #373
-
Hi all!
Also, a small question that may not even related to .build(name, level) Method expanded, cursor appeared on 'name' and I can freely start typing whatever I want. But after that, I want to jump onto the next arg and replace it. I know I can do it in Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
You can add a custom keybinding to nvim-cmp (the autocompletion plugin) to navigate between snippet placeholders. Here is an example. local cmp = require('cmp')
local cmp_action = require('lsp-zero').cmp_action()
cmp.setup({
mapping = cmp.mapping.preset.insert({
['<C-f>'] = cmp_action.luasnip_jump_forward(),
['<C-b>'] = cmp_action.luasnip_jump_backward(),
})
}) |
Beta Was this translation helpful? Give feedback.
-
It works! Thank you. |
Beta Was this translation helpful? Give feedback.
Ctrl + t
should take you back to the position where you calledgd
.You can add a custom keybinding to nvim-cmp (the autocompletion plugin) to navigate between snippet placeholders.
Here is an example.