Big backup I guess
This commit is contained in:
parent
98e8510ae7
commit
a6fb4ffbb2
13 changed files with 130 additions and 58 deletions
dotfiles/neovim/lua/my/plugins
17
dotfiles/neovim/lua/my/plugins/luasnip.lua
Normal file
17
dotfiles/neovim/lua/my/plugins/luasnip.lua
Normal file
|
@ -0,0 +1,17 @@
|
|||
local M = {}
|
||||
local luasnip = require("luasnip")
|
||||
|
||||
function M.setup()
|
||||
vim.keymap.set("i", "<Tab>", function()
|
||||
if luasnip.jumpable(1) then
|
||||
return "<cmd>lua require('luasnip').jump(1)<cr>"
|
||||
else
|
||||
return "<Tab>"
|
||||
end
|
||||
end, { expr = true })
|
||||
vim.keymap.set("i", "<S-Tab>", function()
|
||||
luasnip.jump(-1)
|
||||
end)
|
||||
end
|
||||
|
||||
return M
|
Loading…
Add table
Add a link
Reference in a new issue