about summary refs log tree commit diff
path: root/dotfiles
diff options
context:
space:
mode:
authorBaitinq <manuelpalenzuelamerino@gmail.com>2024-03-19 00:15:14 +0100
committerBaitinq <manuelpalenzuelamerino@gmail.com>2024-03-19 00:15:14 +0100
commita0f8b580aedaf44b5fda6cc2e1c18fd7b31fd192 (patch)
tree7286113c3445972767600f6cd154c09254d0f64d /dotfiles
parentDofiles: Emacs: Add eat terminal (diff)
downloadnixos-config-a0f8b580aedaf44b5fda6cc2e1c18fd7b31fd192.tar.gz
nixos-config-a0f8b580aedaf44b5fda6cc2e1c18fd7b31fd192.tar.bz2
nixos-config-a0f8b580aedaf44b5fda6cc2e1c18fd7b31fd192.zip
Dotfiles: Nvim: Accept completions with enter or tab
Diffstat (limited to 'dotfiles')
-rw-r--r--dotfiles/nvim/init.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/dotfiles/nvim/init.lua b/dotfiles/nvim/init.lua
index 173f214..cd690d6 100644
--- a/dotfiles/nvim/init.lua
+++ b/dotfiles/nvim/init.lua
@@ -694,7 +694,8 @@ require('lazy').setup({
           -- Accept ([y]es) the completion.
           --  This will auto-import if your LSP supports it.
           --  This will expand snippets if the LSP sent a snippet.
-          ['<C-y>'] = cmp.mapping.confirm { select = true },
+          ['<Tab>'] = cmp.mapping.confirm { select = true },
+          ['<CR>'] = cmp.mapping.confirm { select = true },
 
           -- Manually trigger a completion from nvim-cmp.
           --  Generally you don't need this, because nvim-cmp will display