Skip to content

Does anyone have an example config loading nvim-cmp with luasnips using mini.deps ? #1507

Closed Answered by krovuxdev
therealjasonkenney asked this question in Q&A
Discussion options

You must be logged in to vote

@therealjasonkenney I'm not sure if you read about mini.deps. You need to use now or later to execute it. You might also need to configure your lspconfig properly.
I copied the code from the Nvim-cmp guide:

require("mini.deps").setup()
local add, now, later = MiniDeps.add, MiniDeps.now, MiniDeps.later
add({
	source = "neovim/nvim-lspconfig",
	depends = {
		"hrsh7th/cmp-buffer",
		"williamboman/mason.nvim",
	},
})
add({
	source = "hrsh7th/nvim-cmp",
	depends = {
		"hrsh7th/cmp-buffer",
		'hrsh7th/cmp-vsnip',
		'hrsh7th/vim-vsnip',
		"hrsh7th/cmp-path",
		"hrsh7th/cmp-nvim-lsp",
		"saadparwaiz1/cmp_luasnip",
		"L3MON4D3/LuaSnip",
	},
})
now(function()
	require("mason").setup()
	local cmp = r…

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@echasnovski
Comment options

@therealjasonkenney
Comment options

@therealjasonkenney
Comment options

@krovuxdev
Comment options

Answer selected by therealjasonkenney
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested
3 participants