Mercurial > dotfiles
diff .chezmoitemplates/init.lua @ 741:aef7dab2b0e5
feat: only jump snippets if inside one
author | zegervdv <zegervdv@me.com> |
---|---|
date | Thu, 22 Dec 2022 10:44:01 +0100 |
parents | 68cb1c4b268c |
children | 3ebd380b6ce1 |
line wrap: on
line diff
--- a/.chezmoitemplates/init.lua Tue Dec 20 21:22:54 2022 +0100 +++ b/.chezmoitemplates/init.lua Thu Dec 22 10:44:01 2022 +0100 @@ -1146,7 +1146,7 @@ local ls = require 'luasnip' -- Expand snippet or jump to next placeholder vim.keymap.set({ 'i', 's' }, '<c-k>', function() - if ls.expand_or_jumpable() then ls.expand_or_jump() end + if ls.expand_or_locally_jumpable() then ls.expand_or_jump() end end, { silent = true, })