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",
|
||||
config = function()
|
||||
require("compe-completion").config()
|
||||
require("nvim-autopairs.completion.compe").setup(
|
||||
{
|
||||
map_cr = true,
|
||||
map_complete = true -- insert () func completion
|
||||
}
|
||||
)
|
||||
end,
|
||||
wants = {"LuaSnip"},
|
||||
requires = {
|
||||
|
@ -113,9 +107,14 @@ return packer.startup(
|
|||
use {
|
||||
"windwp/nvim-autopairs",
|
||||
after = "nvim-compe",
|
||||
event = "InsertEnter",
|
||||
config = function()
|
||||
require("nvim-autopairs").setup()
|
||||
require("nvim-autopairs.completion.compe").setup(
|
||||
{
|
||||
map_cr = true,
|
||||
map_complete = true -- insert () func completion
|
||||
}
|
||||
)
|
||||
end
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue