Skip to content

Commit

Permalink
nixvimConfigs/fiesta/setups/completion: add more keymaps for nvim-cmp
Browse files Browse the repository at this point in the history
  • Loading branch information
foo-dogsquared committed Feb 7, 2024
1 parent 4a2b55b commit d47b838
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions configs/nixvim/fiesta/modules/setups/completion.nix
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,16 @@ in
"<C-d>" = "cmp.mapping.scroll_docs(-4)";
"<C-u>" = "cmp.mapping.scroll_docs(4)";
"<C-g>" = "cmp.mapping.close()";

"<C-n>" = {
action = "cmp.mapping.select_next_item()";
modes = [ "i" "s" ];
};
"<C-p>" = {
action = "cmp.mapping.select_prev_item()";
modes = [ "i" "s" ];
};

"<Tab>" = {
action = "cmp.mapping.select_next_item()";
modes = [ "i" "s" ];
Expand Down

0 comments on commit d47b838

Please sign in to comment.