add luasnip

This commit is contained in:
MFlossmann 2024-07-02 14:54:09 +02:00
parent c5369f84df
commit 1c59815bcf
2 changed files with 4 additions and 3 deletions

View file

@ -10,11 +10,9 @@ _:
{ name = "nvim_lsp"; priority = 1000; } { name = "nvim_lsp"; priority = 1000; }
{ name = "path"; priority = 250; } { name = "path"; priority = 250; }
{ name = "buffer"; priority = 500; group_index = 2; } { name = "buffer"; priority = 500; group_index = 2; }
{ name = "luasnip"; priority = 750; }
]; ];
# TODO: add this at luasnip:
# { name = "luasnip", priority = 750 }
mapping = { mapping = {
"<Up>" = "cmp.mapping.select_prev_item { behavior = cmp.SelectBehavior.Select }"; "<Up>" = "cmp.mapping.select_prev_item { behavior = cmp.SelectBehavior.Select }";
"<Down>" = "cmp.mapping.select_next_item { behavior = cmp.SelectBehavior.Select }"; "<Down>" = "cmp.mapping.select_next_item { behavior = cmp.SelectBehavior.Select }";

3
plugins/luasnip.nix Normal file
View file

@ -0,0 +1,3 @@
_:{
opts.enable = true;
}