Skip to content

Commit

Permalink
update completion behaviour
Browse files Browse the repository at this point in the history
  • Loading branch information
simonrw committed May 16, 2024
1 parent 3129012 commit da7c0b5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions home/nixvim/completion.nix
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ in {
{name = "luasnip";}
];
mapping = {
"<C-p>" = "cmp.mapping.select_prev_item({ select = true })";
"<C-n>" = "cmp.mapping.select_next_item({ select = true })";
"<C-y>" = "cmp.mapping.confirm({ select = true })";
"<C-p>" = "cmp.mapping.select_prev_item({ behavior = cmp.SelectBehavior.Insert })";
"<C-n>" = "cmp.mapping.select_next_item({ behavior = cmp.SelectBehavior.Insert })";
"<C-y>" = "cmp.mapping.confirm({ select = true, behavior = cmp.ConfirmBehavior.Insert })";
"<C-Space>" = "cmp.mapping.complete()";
"<C-e>" = "cmp.config.disable";
};
Expand Down

0 comments on commit da7c0b5

Please sign in to comment.