Skip to content

Commit 195d39c

Browse files
committed
blink: add keybinds for cmdline
1 parent 316aeea commit 195d39c

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

modules/plugins/completion/blink-cmp/config.nix

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,21 @@ in {
122122
"fallback"
123123
];
124124
};
125+
126+
# cmdline is not enabled by default, we're just providing keymaps in
127+
# case the user enables them
128+
cmdline.keymap = {
129+
${mappings.complete} = ["show" "fallback"];
130+
${mappings.close} = ["hide" "fallback"];
131+
${mappings.scrollDocsUp} = ["scroll_documentation_up" "fallback"];
132+
${mappings.scrollDocsDown} = ["scroll_documentation_down" "fallback"];
133+
# NOTE: mappings.confirm is skipped because our default, <CR> would
134+
# lead to accidental triggers of blink.accept instead of executing
135+
# the cmd
136+
137+
${mappings.next} = ["select_next" "show" "fallback"];
138+
${mappings.previous} = ["select_prev" "fallback"];
139+
};
125140
};
126141
};
127142
};

0 commit comments

Comments
 (0)