Update default_behavior
This commit is contained in:
2
Makefile
2
Makefile
@@ -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:
|
||||||
|
|||||||
@@ -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
|
||||||
====================
|
====================
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ return function()
|
|||||||
},
|
},
|
||||||
|
|
||||||
confirmation = {
|
confirmation = {
|
||||||
default_behavior = types.cmp.ConfirmBehavior.Replace,
|
default_behavior = types.cmp.ConfirmBehavior.Insert,
|
||||||
},
|
},
|
||||||
|
|
||||||
sorting = {
|
sorting = {
|
||||||
|
|||||||
Reference in New Issue
Block a user