feat(completion): use magazine.nvim instead of regular cmp; autopairs

This commit is contained in:
2024-10-07 23:52:35 +02:00
parent 4b89037a83
commit 8d32b4cfff

View File

@@ -1,9 +1,22 @@
return { return {
{ {
"hrsh7th/nvim-cmp", "windwp/nvim-autopairs",
event = "InsertEnter",
config = true,
},
{
"iguanacucumber/magazine.nvim",
name = "nvim-cmp",
dependencies = { dependencies = {
"onsails/lspkind.nvim", "onsails/lspkind.nvim",
"VonHeikemen/lsp-zero.nvim", "VonHeikemen/lsp-zero.nvim",
"hrsh7th/cmp-nvim-lsp",
"hrsh7th/cmp-nvim-lsp-signature-help",
"hrsh7th/cmp-nvim-lua",
"hrsh7th/cmp-buffer",
"hrsh7th/cmp-path",
"hrsh7th/cmp-cmdline",
"L3MON4D3/LuaSnip",
}, },
opts = function() opts = function()
local cmp = require("cmp") local cmp = require("cmp")
@@ -14,6 +27,8 @@ return {
vim.api.nvim_set_hl(0, "CmpPmenuBorder", { link = "FloatBorder" }) vim.api.nvim_set_hl(0, "CmpPmenuBorder", { link = "FloatBorder" })
cmp.event:on("confirm_done", require("nvim-autopairs.completion.cmp").on_confirm_done())
return { return {
snippet = { snippet = {
expand = function(args) expand = function(args)
@@ -99,11 +114,4 @@ return {
} }
end, end,
}, },
"hrsh7th/cmp-nvim-lsp",
"hrsh7th/cmp-nvim-lsp-signature-help",
"hrsh7th/cmp-nvim-lua",
"hrsh7th/cmp-buffer",
"hrsh7th/cmp-path",
"hrsh7th/cmp-cmdline",
"L3MON4D3/LuaSnip",
} }