on master help sign in
Remove deprecated setup() function.

The existence of this causes sumneko_lua to think that the call to `cmp.setup()` requires 0 arguments. Additionally, it allows for going to the correct definition, instead of the one defined in `nvim-autopairs.completion.cmp`.

commit38d486a1c47ae2722a78cf569008de0a64f4b153 authorDan Sully <dan+github@sully.org> dateWed 13 Apr 2022, 10:30 (5 years ago) parent6fb0479
1 file changed−5
lua/nvim-autopairs/completion/cmp.lua−5
lua/nvim-autopairs/completion/cmp.lua−5
@@ -4,11 +4,6 @@ local cmp = require('cmp')
44
55local M = {}
66
7−M.setup = function()
8− vim.notify('[nvim-autopairs] function nvim-autopairs.completion.cmp setup is deprecated.')
9− vim.notify('[nvim-autopairs] remove this function and use require("cmp").setup to add <cr> mapping.')
10−end
11−
127M.lisp = { "clojure", "clojurescript", "fennel", "janet" }
138
149local ignore_append = function(char, kinds, next_char, prev_char, item)