chnage select behavior

This commit is contained in:
vincent 2022-02-10 18:04:31 +01:00
parent b36799f2c8
commit bc17ace5ef
2 changed files with 1 additions and 2 deletions

View File

@ -75,7 +75,7 @@ vim.api.nvim_set_keymap('c', 'w!!','w !sudo tee > /dev/null %', {noremap = true}
i = cmp.mapping.abort(), i = cmp.mapping.abort(),
c = cmp.mapping.close(), c = cmp.mapping.close(),
}), }),
['<CR>'] = cmp.mapping.confirm({ select = true }), -- Accept currently selected item. Set `select` to `false` to only confirm explicitly selected items. ['<CR>'] = cmp.mapping.confirm({ select = false }), -- Accept currently selected item. Set `select` to `false` to only confirm explicitly selected items.
}, },
sources = cmp.config.sources({ sources = cmp.config.sources({
{ name = 'nvim_lsp' }, { name = 'nvim_lsp' },

View File

@ -185,7 +185,6 @@ return require('packer').startup {
require("null-ls").builtins.formatting.trim_newlines, require("null-ls").builtins.formatting.trim_newlines,
require("null-ls").builtins.formatting.black, require("null-ls").builtins.formatting.black,
require("null-ls").builtins.diagnostics.eslint, require("null-ls").builtins.diagnostics.eslint,
require("null-ls").builtins.diagnostics.ansiblelint,
require("null-ls").builtins.completion.spell, require("null-ls").builtins.completion.spell,
}, },
}) })