Skip to content

Commit a8f7050

Browse files
hackermanJChackermanJC
authored andcommitted
removed <C-n> <C-p> to scroll through suggested autocompletes. changed confirming suggestion from <C-y> to <Tab>
1 parent d963059 commit a8f7050

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

init.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -831,9 +831,9 @@ require('lazy').setup({
831831
-- No, but seriously. Please read `:help ins-completion`, it is really good!
832832
mapping = cmp.mapping.preset.insert {
833833
-- Select the [n]ext item
834-
['<C-n>'] = cmp.mapping.select_next_item(),
834+
--['<C-n>'] = cmp.mapping.select_next_item(),
835835
-- Select the [p]revious item
836-
['<C-p>'] = cmp.mapping.select_prev_item(),
836+
--['<C-p>'] = cmp.mapping.select_prev_item(),
837837

838838
-- Scroll the documentation window [b]ack / [f]orward
839839
['<C-b>'] = cmp.mapping.scroll_docs(-4),
@@ -846,7 +846,7 @@ require('lazy').setup({
846846

847847
-- If you prefer more traditional completion keymaps,
848848
-- you can uncomment the following lines
849-
--['<CR>'] = cmp.mapping.confirm { select = true },
849+
['<Tab>'] = cmp.mapping.confirm { select = true },
850850
--['<Tab>'] = cmp.mapping.select_next_item(),
851851
--['<S-Tab>'] = cmp.mapping.select_prev_item(),
852852

0 commit comments

Comments
 (0)