All Projects → saadparwaiz1 → cmp_luasnip

saadparwaiz1 / cmp_luasnip

Licence: Apache-2.0 license
luasnip completion source for nvim-cmp

Programming Languages

lua
6591 projects

Projects that are alternatives of or similar to cmp luasnip

nvim-cmp
A completion plugin for neovim coded in Lua.
Stars: ✭ 4,534 (+1463.45%)
Mutual labels:  nvim-cmp
cmp-emoji
nvim-cmp source for emoji
Stars: ✭ 99 (-65.86%)
Mutual labels:  nvim-cmp
cmp-latex-symbols
Add latex symbol support for nvim-cmp.
Stars: ✭ 82 (-71.72%)
Mutual labels:  nvim-cmp
nvim
Structure, documented, super fast neovim configuration. 可能是翻斗花园最好用的 neovim 配置[^1]。
Stars: ✭ 223 (-23.1%)
Mutual labels:  nvim-cmp
cmp-tmux
Tmux completion source for nvim-cmp and nvim-compe
Stars: ✭ 98 (-66.21%)
Mutual labels:  nvim-cmp
nvim-fennel-lsp-conjure-as-clojure-ide
Basic config to transform your NVIM in a powerful Clojure IDE using fennel, clojure-lsp and conjure.
Stars: ✭ 144 (-50.34%)
Mutual labels:  nvim-cmp
cmp-vsnip
nvim-cmp source for vim-vsnip
Stars: ✭ 70 (-75.86%)
Mutual labels:  nvim-cmp
cmp-dictionary
nvim-cmp source for dictionary.
Stars: ✭ 60 (-79.31%)
Mutual labels:  nvim-cmp
cmp-under-comparator
nvim-cmp comparator function for completion items that start with one or more underlines
Stars: ✭ 77 (-73.45%)
Mutual labels:  nvim-cmp
cmp-treesitter
cmp source for treesitter
Stars: ✭ 69 (-76.21%)
Mutual labels:  nvim-cmp
cmp-path
nvim-cmp source for path
Stars: ✭ 137 (-52.76%)
Mutual labels:  nvim-cmp
cmp-skkeleton
skkeleton source for nvim-cmp
Stars: ✭ 12 (-95.86%)
Mutual labels:  nvim-cmp
cmp-nvim-ultisnips
nvim-cmp source for ultisnips
Stars: ✭ 61 (-78.97%)
Mutual labels:  nvim-cmp
cmp-nvim-lsp-document-symbol
nvim-cmp source for textDocument/documentSymbol via nvim-lsp.
Stars: ✭ 88 (-69.66%)
Mutual labels:  nvim-cmp
cmp-rg
ripgrep source for nvim-cmp
Stars: ✭ 165 (-43.1%)
Mutual labels:  nvim-cmp
crates.nvim
A neovim plugin that helps managing crates.io dependencies
Stars: ✭ 252 (-13.1%)
Mutual labels:  nvim-cmp
cmp-spell
spell source for nvim-cmp based on vim's spellsuggest.
Stars: ✭ 99 (-65.86%)
Mutual labels:  nvim-cmp

cmp_luasnip

luasnip completion source for nvim-cmp

-- 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:

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 and here.

The same way you can de-/activate whether autosnippets should be included in the completion list or not (including them can be a bit problematic since when you select the entry, the text gets inserted and the snippet automatically triggers). This option defaults to false to be backwards compatible. Example:

sources = {
  { name = 'luasnip', option = { show_autosnippets = true } },
  -- more sources
},

Hint: If you want to just hide some autosnippets consider the hidden option of luaSnip

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].