Update default_behavior
This commit is contained in:
2
Makefile
2
Makefile
@@ -8,7 +8,7 @@ lint:
|
||||
|
||||
.PHONY: test
|
||||
test:
|
||||
vusted ./lua
|
||||
vusted --output=gtest ./lua
|
||||
|
||||
.PHONY: pre-commit
|
||||
pre-commit:
|
||||
|
||||
@@ -63,7 +63,7 @@ lua <<EOF
|
||||
['<C-Space>'] = cmp.mapping.complete(),
|
||||
['<C-e>'] = cmp.mapping.close(),
|
||||
['<CR>'] = cmp.mapping.confirm({
|
||||
behavior = cmp.ConfirmBehavior.Replace,
|
||||
behavior = cmp.ConfirmBehavior.Insert,
|
||||
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
|
||||
====================
|
||||
|
||||
@@ -30,7 +30,7 @@ return function()
|
||||
},
|
||||
|
||||
confirmation = {
|
||||
default_behavior = types.cmp.ConfirmBehavior.Replace,
|
||||
default_behavior = types.cmp.ConfirmBehavior.Insert,
|
||||
},
|
||||
|
||||
sorting = {
|
||||
|
||||
Reference in New Issue
Block a user