summaryrefslogtreecommitdiffstats
path: root/after/plugin/cmp.lua
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--after/plugin/cmp.lua5
1 files changed, 1 insertions, 4 deletions
diff --git a/after/plugin/cmp.lua b/after/plugin/cmp.lua
index 0e8de6b..7106aae 100644
--- a/after/plugin/cmp.lua
+++ b/after/plugin/cmp.lua
@@ -10,10 +10,6 @@ local has_words_before = function()
[1]:sub(col, col):match("%s") == nil
end
--- insert '()' after completing a function
-cmp.event:on('confirm_done',
- require('nvim-autopairs.completion.cmp').on_confirm_done())
-
local luasnip = require('luasnip')
local neogen = require('neogen')
require("luasnip.loaders.from_vscode").lazy_load()
@@ -27,6 +23,7 @@ cmp.setup {
sources = cmp.config.sources({
{ name = 'nvim_lsp', keyword_length = 3 },
+ { name = 'nvim_lua' },
{ name = 'luasnip_choice' },
{ name = 'async_path' },
{ name = 'buffer', keyword_length = 3, max_item_count = 7 },