Skip to content

Commit

Permalink
refactor(cmp): use new preset available for keymap
Browse files Browse the repository at this point in the history
  • Loading branch information
pwnwriter committed Nov 3, 2024
1 parent 2b9863f commit cfa7059
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions lua/plugins/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -126,21 +126,15 @@ local plugins = {
use_nvim_cmp_as_default = true,
},
nerd_font_variant = "mono",
accept = { auto_brackets = { enabled = true } },

-- trigger = { signature_help = { enabled = true } },
trigger = { signature_help = { enabled = true } },

keymap = {
show = "<C-space>",
hide = { "<C-d>" },
accept = "<CR>",
select_prev = { "<Up>", "<C-p>" },
select_next = { "<Down>", "<C-n>" },

show_documentation = {},
hide_documentation = {},
scroll_documentation_up = "<C-y>",
scroll_documentation_down = "<C-e>",
["<CR>"] = { "select_and_accept", "fallback" },
["<C-n>"] = { "select_next", "fallback" },
["<C-p>"] = { "select_prev", "fallback" },
["<C-y>"] = { "scroll_documentation_down" },
["<C-e>"] = { "scroll_documentation_up" },
},

windows = {
Expand Down

0 comments on commit cfa7059

Please sign in to comment.