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

@ -1,5 +1,5 @@
return {
"echasnovski/mini.pairs",
event = "VeryLazy",
opts = {},
"windwp/nvim-autopairs",
event = "InsertEnter",
opts = {}, -- this is equalent to setup({}) function
}

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",

View file

@ -12,11 +12,6 @@ return {
end,
},
{ "nvim-treesitter/nvim-treesitter-context" },
{
"echasnovski/mini.surround",
version = "*",
event = "VeryLazy",
},
{
"uga-rosa/ccc.nvim",
event = "VeryLazy",