# HG changeset patch # User zegervdv # Date 1671702241 -3600 # Node ID aef7dab2b0e5f50ff9307be9ea9f17185307b6b3 # Parent 68cb1c4b268cd10ef534ff459c32326037086fe6 feat: only jump snippets if inside one diff -r 68cb1c4b268c -r aef7dab2b0e5 .chezmoitemplates/init.lua --- 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' }, '', 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, })