change autopairs plugin

closes #6
This commit is contained in:
Alexander Navarro 2024-01-26 17:15:34 -03:00
parent 6544c201d6
commit 014b631646
4 changed files with 10 additions and 11 deletions

View file

@ -11,10 +11,15 @@ return {
"hrsh7th/cmp-cmdline",
"saadparwaiz1/cmp_luasnip",
"L3MON4D3/LuaSnip",
"windwp/nvim-autopairs",
},
config = function()
vim.api.nvim_set_hl(0, "CmpGhostText", { link = "Comment", default = true })
local cmp = require("cmp")
local cmp_autopairs = require("nvim-autopairs.completion.cmp")
cmp.event:on("confirm_done", cmp_autopairs.on_confirm_done())
local defaults = require("cmp.config.default")()
local window_opts = {
border = "rounded",