summaryrefslogtreecommitdiff
path: root/.config/nvim
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2023-09-12 23:33:59 +0200
committerThomas Voss <mail@thomasvoss.com> 2023-09-12 23:33:59 +0200
commited82e4042b8bfc472a0796dedec1a9369e411cb8 (patch)
treefe66c138adc101c23e6b09a7732d010c8b572e03 /.config/nvim
parent78d2f88b3207f00cac1d5cbe21e00286dec417e8 (diff)
nvim: Add bindings for luasnip
Diffstat (limited to '.config/nvim')
-rw-r--r--.config/nvim/after/plugin/luasnip.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/.config/nvim/after/plugin/luasnip.lua b/.config/nvim/after/plugin/luasnip.lua
new file mode 100644
index 0000000..42103bc
--- /dev/null
+++ b/.config/nvim/after/plugin/luasnip.lua
@@ -0,0 +1,5 @@
+local luasnip = require('luasnip')
+local lib = require('mango.lib')
+
+lib.remap('i', '<C-l>', function() luasnip.jump(1) end)
+lib.remap('i', '<C-h>', function() luasnip.jump(-1) end)