Update default_behavior

This commit is contained in:
hrsh7th
2021-08-23 18:51:43 +09:00
parent faf3fec703
commit 5edcf14f0d
3 changed files with 7 additions and 3 deletions

View File

@@ -8,7 +8,7 @@ lint:
.PHONY: test .PHONY: test
test: test:
vusted ./lua vusted --output=gtest ./lua
.PHONY: pre-commit .PHONY: pre-commit
pre-commit: pre-commit:

View File

@@ -63,7 +63,7 @@ lua <<EOF
['<C-Space>'] = cmp.mapping.complete(), ['<C-Space>'] = cmp.mapping.complete(),
['<C-e>'] = cmp.mapping.close(), ['<C-e>'] = cmp.mapping.close(),
['<CR>'] = cmp.mapping.confirm({ ['<CR>'] = cmp.mapping.confirm({
behavior = cmp.ConfirmBehavior.Replace, behavior = cmp.ConfirmBehavior.Insert,
select = true, select = true,
}) })
}, },
@@ -261,6 +261,10 @@ cmp.setup {
} }
``` ```
#### nvim-cmp is slow.
I optimized nvim-cmp as much as possible but some reason exists maybe.
Source creation Source creation
==================== ====================

View File

@@ -30,7 +30,7 @@ return function()
}, },
confirmation = { confirmation = {
default_behavior = types.cmp.ConfirmBehavior.Replace, default_behavior = types.cmp.ConfirmBehavior.Insert,
}, },
sorting = { sorting = {