# cmp_luasnip **Repository Path**: mirror_jedsek/cmp_luasnip ## Basic Information - **Project Name**: cmp_luasnip - **Description**: cmp_luasnip - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2022-04-04 - **Last Updated**: 2022-05-21 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # cmp_luasnip [luasnip](https://github.com/L3MON4D3/LuaSnip) completion source for [nvim-cmp](https://github.com/hrsh7th/nvim-cmp) ```lua -- Installation use { 'L3MON4D3/LuaSnip' } use { 'hrsh7th/nvim-cmp', config = function () require'cmp'.setup { snippet = { expand = function(args) require'luasnip'.lsp_expand(args.body) end }, sources = { { name = 'luasnip' }, -- more sources }, } end } use { 'saadparwaiz1/cmp_luasnip' } ``` To disable filtering completion candidates by snippet's `show_condition` use the following options in `sources`: ```lua sources = { { name = 'luasnip', option = { use_show_condition = false } }, -- more sources }, ``` This can also be configured on per-buffer basis as described in cmp's README [here](https://github.com/hrsh7th/nvim-cmp#how-to-disable-nvim-cmp-on-the-specific-buffer) and [here](https://github.com/hrsh7th/nvim-cmp#sources-type-tablecmpsourceconfig).