diff options
author | Justine Smithies <justine@smithies.me.uk> | 2024-01-06 17:43:02 +0000 |
---|---|---|
committer | Justine Smithies <justine@smithies.me.uk> | 2024-01-06 17:43:02 +0000 |
commit | fadc58b467878d66405e151d65932c97884e1ab2 (patch) | |
tree | 9b6d2b367633de7a7b13c92a46fa738e256bd0c3 /.config/nvim | |
parent | 583defe7158bdeca0d1013c253853486985b7958 (diff) |
Set cmp.mapping.confirm to true
Diffstat (limited to '.config/nvim')
-rw-r--r-- | .config/nvim/lua/pluginsconfig/nvim-cmp.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/.config/nvim/lua/pluginsconfig/nvim-cmp.lua b/.config/nvim/lua/pluginsconfig/nvim-cmp.lua index 34ec756..dcde40a 100644 --- a/.config/nvim/lua/pluginsconfig/nvim-cmp.lua +++ b/.config/nvim/lua/pluginsconfig/nvim-cmp.lua @@ -24,7 +24,7 @@ end ['<C-f>'] = cmp.mapping.scroll_docs(4), ['<C-Space>'] = cmp.mapping.complete(), ['<C-e>'] = cmp.mapping.abort(), - ['<CR>'] = cmp.mapping.confirm({ select = false }), -- Accept currently selected item. Set `select` to `false` to only confirm explicitly selected items. + ['<CR>'] = cmp.mapping.confirm({ select = true }), -- Accept currently selected item. Set `select` to `false` to only confirm explicitly selected items. }), sources = cmp.config.sources({ { name = 'nvim_lsp' }, |