From 1c59815bcf66b33c480ad4dffc51bf536c377229 Mon Sep 17 00:00:00 2001 From: MFlossmann Date: Tue, 2 Jul 2024 14:54:09 +0200 Subject: [PATCH] add luasnip --- plugins/cmp.nix | 4 +--- plugins/luasnip.nix | 3 +++ 2 files changed, 4 insertions(+), 3 deletions(-) create mode 100644 plugins/luasnip.nix diff --git a/plugins/cmp.nix b/plugins/cmp.nix index 507cbe9..d9b700f 100644 --- a/plugins/cmp.nix +++ b/plugins/cmp.nix @@ -10,11 +10,9 @@ _: { name = "nvim_lsp"; priority = 1000; } { name = "path"; priority = 250; } { name = "buffer"; priority = 500; group_index = 2; } + { name = "luasnip"; priority = 750; } ]; - # TODO: add this at luasnip: - # { name = "luasnip", priority = 750 } - mapping = { "" = "cmp.mapping.select_prev_item { behavior = cmp.SelectBehavior.Select }"; "" = "cmp.mapping.select_next_item { behavior = cmp.SelectBehavior.Select }"; diff --git a/plugins/luasnip.nix b/plugins/luasnip.nix new file mode 100644 index 0000000..4701491 --- /dev/null +++ b/plugins/luasnip.nix @@ -0,0 +1,3 @@ +_:{ + opts.enable = true; +}