add parenthesis for function completion
This commit is contained in:
parent
7db1fb75b9
commit
8b4118605b
|
@ -53,6 +53,12 @@ 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 = {
|
||||||
|
@ -106,6 +112,7 @@ return packer.startup(
|
||||||
-- misc plugins
|
-- misc plugins
|
||||||
use {
|
use {
|
||||||
"windwp/nvim-autopairs",
|
"windwp/nvim-autopairs",
|
||||||
|
after = "nvim-compe",
|
||||||
event = "InsertEnter",
|
event = "InsertEnter",
|
||||||
config = function()
|
config = function()
|
||||||
require("nvim-autopairs").setup()
|
require("nvim-autopairs").setup()
|
||||||
|
|
Loading…
Reference in New Issue