diff options
author | Baitinq <manuelpalenzuelamerino@gmail.com> | 2024-03-19 00:15:14 +0100 |
---|---|---|
committer | Baitinq <manuelpalenzuelamerino@gmail.com> | 2024-03-19 00:15:14 +0100 |
commit | a0f8b580aedaf44b5fda6cc2e1c18fd7b31fd192 (patch) | |
tree | 7286113c3445972767600f6cd154c09254d0f64d /dotfiles | |
parent | Dofiles: Emacs: Add eat terminal (diff) | |
download | nixos-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.lua | 3 |
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 |