return { -- nvim-autopairs: auto close brackets, quotes { "windwp/nvim-autopairs", event = "InsertEnter", -- lazy-load when entering insert mode config = function() require("nvim-autopairs").setup({}) end, }, -- nvim-cmp: autocompletion engine -- { -- "hrsh7th/nvim-cmp", -- event = "InsertEnter", -- dependencies = { -- "hrsh7th/cmp-nvim-lsp", -- "hrsh7th/cmp-buffer", -- "hrsh7th/cmp-path", -- "saadparwaiz1/cmp_luasnip", -- "L3MON4D3/LuaSnip", -- }, -- config = function() -- local cmp = require("cmp") -- local luasnip = require("luasnip") -- cmp.setup({ -- snippet = { expand = function(args) luasnip.lsp_expand(args.body) end }, -- mapping = cmp.mapping.preset.insert({ -- [""] = cmp.mapping.select_next_item(), -- [""] = cmp.mapping.select_prev_item(), -- [""] = cmp.mapping.confirm({ select = true }), -- [""] = cmp.mapping.complete(), -- }), -- sources = cmp.config.sources({ -- { name = "nvim_lsp" }, -- { name = "buffer" }, -- { name = "path" }, -- { name = "luasnip" }, -- }), -- }) -- end, -- }, }