Skip to content

Commit

Permalink
chore
Browse files Browse the repository at this point in the history
  • Loading branch information
linrongbin16 committed Nov 5, 2024
1 parent eb071b7 commit 393592e
Showing 1 changed file with 12 additions and 13 deletions.
25 changes: 12 additions & 13 deletions lua/configs/saghen/blink-cmp/config.lua
Original file line number Diff line number Diff line change
@@ -1,20 +1,19 @@
require("blink.cmp").setup({
keymap = {
preset = "default",
["<CR>"] = { "accept", "fallback" },
["<Tab>"] = { "accept", "fallback" },
["<S-Tab>"] = { "fallback" },

["<Up>"] = { "select_prev", "fallback" },
["<Down>"] = { "select_next", "fallback" },
["<Tab>"] = {
function(cmp)
if cmp.is_in_snippet() then
return cmp.accept()
else
return cmp.select_and_accept()
end
end,
"snippet_forward",
"fallback",
},
["<CR>"] = { "accept", "fallback" },
["<C-p>"] = { "select_prev", "fallback" },
["<C-n>"] = { "select_next", "fallback" },

["<C-f>"] = { "snippet_forward", "fallback" },
["<C-b>"] = { "snippet_backward", "fallback" },

["<C-u>"] = { "scroll_documentation_up", "fallback" },
["<C-d>"] = { "scroll_documentation_down", "fallback" },
},
trigger = {
signature_help = {
Expand Down

0 comments on commit 393592e

Please sign in to comment.