Skip to content

Commit

Permalink
fix(nvim): cmp insert instead of replace
Browse files Browse the repository at this point in the history
  • Loading branch information
caarlos0 committed Jul 1, 2024
1 parent a7c16b7 commit 6e5e143
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/neovim/config/lua/user/cmp.lua
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ cmp.setup({
["<C-Space>"] = cmp.mapping.complete({}),
["<C-e>"] = cmp.mapping.abort(),
["<C-y>"] = cmp.mapping.confirm({
behavior = cmp.ConfirmBehavior.Replace,
behavior = cmp.ConfirmBehavior.Insert,
select = true,
}, { "i", "c" }),
["<Up>"] = cmp.mapping.select_prev_item(cmp_select_opts),
Expand Down

0 comments on commit 6e5e143

Please sign in to comment.