fix(luasnip): move mappings to cmp spec so that they dont conflict with native snippets

This commit is contained in:
Folke Lemaitre 2024-06-02 18:43:44 +02:00
parent 83c0c9405a
commit da7b7738eb
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040

View file

@ -1,4 +1,5 @@
return { return {
{
"L3MON4D3/LuaSnip", "L3MON4D3/LuaSnip",
build = (not LazyVim.is_win()) build = (not LazyVim.is_win())
and "echo 'NOTE: jsregexp is optional, so not a big deal if it fails to build'; make install_jsregexp" and "echo 'NOTE: jsregexp is optional, so not a big deal if it fails to build'; make install_jsregexp"
@ -29,6 +30,9 @@ return {
history = true, history = true,
delete_check_events = "TextChanged", delete_check_events = "TextChanged",
}, },
},
{
"nvim-cmp",
-- stylua: ignore -- stylua: ignore
keys = { keys = {
{ {
@ -41,4 +45,5 @@ return {
{ "<tab>", function() require("luasnip").jump(1) end, mode = "s" }, { "<tab>", function() require("luasnip").jump(1) end, mode = "s" },
{ "<s-tab>", function() require("luasnip").jump(-1) end, mode = { "i", "s" } }, { "<s-tab>", function() require("luasnip").jump(-1) end, mode = { "i", "s" } },
}, },
},
} }