autopairs parenthesis autoinsert after function completion
This commit is contained in:
parent
8b4118605b
commit
b16c5a2f70
1 changed files with 6 additions and 7 deletions
|
@ -53,12 +53,6 @@ return packer.startup(
|
||||||
event = "InsertEnter",
|
event = "InsertEnter",
|
||||||
config = function()
|
config = function()
|
||||||
require("compe-completion").config()
|
require("compe-completion").config()
|
||||||
require("nvim-autopairs.completion.compe").setup(
|
|
||||||
{
|
|
||||||
map_cr = true,
|
|
||||||
map_complete = true -- insert () func completion
|
|
||||||
}
|
|
||||||
)
|
|
||||||
end,
|
end,
|
||||||
wants = {"LuaSnip"},
|
wants = {"LuaSnip"},
|
||||||
requires = {
|
requires = {
|
||||||
|
@ -113,9 +107,14 @@ return packer.startup(
|
||||||
use {
|
use {
|
||||||
"windwp/nvim-autopairs",
|
"windwp/nvim-autopairs",
|
||||||
after = "nvim-compe",
|
after = "nvim-compe",
|
||||||
event = "InsertEnter",
|
|
||||||
config = function()
|
config = function()
|
||||||
require("nvim-autopairs").setup()
|
require("nvim-autopairs").setup()
|
||||||
|
require("nvim-autopairs.completion.compe").setup(
|
||||||
|
{
|
||||||
|
map_cr = true,
|
||||||
|
map_complete = true -- insert () func completion
|
||||||
|
}
|
||||||
|
)
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue