From 393592eff27d169d37bc146da465d4bc41fed736 Mon Sep 17 00:00:00 2001 From: linrongbin16 Date: Tue, 5 Nov 2024 11:56:39 +0800 Subject: [PATCH] chore --- lua/configs/saghen/blink-cmp/config.lua | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/lua/configs/saghen/blink-cmp/config.lua b/lua/configs/saghen/blink-cmp/config.lua index 81244c01..8d2f23e9 100644 --- a/lua/configs/saghen/blink-cmp/config.lua +++ b/lua/configs/saghen/blink-cmp/config.lua @@ -1,20 +1,19 @@ require("blink.cmp").setup({ keymap = { - preset = "default", + [""] = { "accept", "fallback" }, + [""] = { "accept", "fallback" }, + [""] = { "fallback" }, + [""] = { "select_prev", "fallback" }, [""] = { "select_next", "fallback" }, - [""] = { - function(cmp) - if cmp.is_in_snippet() then - return cmp.accept() - else - return cmp.select_and_accept() - end - end, - "snippet_forward", - "fallback", - }, - [""] = { "accept", "fallback" }, + [""] = { "select_prev", "fallback" }, + [""] = { "select_next", "fallback" }, + + [""] = { "snippet_forward", "fallback" }, + [""] = { "snippet_backward", "fallback" }, + + [""] = { "scroll_documentation_up", "fallback" }, + [""] = { "scroll_documentation_down", "fallback" }, }, trigger = { signature_help = {