2024-06-17 15:22:39 +07:00
|
|
|
return {
|
2024-07-31 21:24:28 +07:00
|
|
|
{
|
|
|
|
"L3MON4D3/LuaSnip",
|
|
|
|
opts = function(_, opts)
|
|
|
|
require "snippets"
|
|
|
|
return opts
|
|
|
|
end,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"nvim-cmp",
|
|
|
|
keys = {
|
|
|
|
{
|
|
|
|
"<tab>",
|
|
|
|
false,
|
|
|
|
mode = "i",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"<c-j>",
|
|
|
|
function()
|
|
|
|
return require("luasnip").jumpable(1) and "<Plug>luasnip-jump-next" or "<c-j>"
|
|
|
|
end,
|
|
|
|
expr = true,
|
|
|
|
silent = true,
|
|
|
|
mode = { "i", "s" },
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"<c-k>",
|
|
|
|
function()
|
|
|
|
return require("luasnip").jumpable(-1) and "<Plug>luasnip-jump-prev" or "<c-k>"
|
|
|
|
end,
|
|
|
|
expr = true,
|
|
|
|
silent = true,
|
|
|
|
mode = "i",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"<s-tab>",
|
|
|
|
false,
|
|
|
|
mode = { "i" },
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2024-06-17 15:22:39 +07:00
|
|
|
}
|