my_nvim_config/after/plugin/luasnip.lua

6 lines
329 B
Lua
Raw Normal View History

local opts = { noremap = true, silent = true }
local ls = require("luasnip")
vim.api.nvim_set_keymap("n", "<Leader>nf", ":lua require('neogen').generate()<CR>", opts)
vim.keymap.set({"i", "s"}, "<C-L>", function() ls.jump( 1) end, {silent = true})
vim.keymap.set({"i", "s"}, "<C-J>", function() ls.jump(-1) end, {silent = true})