https://github.com/dcampos/cmp-snippy
nvim-snippy completion source for nvim-cmp.
https://github.com/dcampos/cmp-snippy
nvim-cmp
Last synced: 6 months ago
JSON representation
nvim-snippy completion source for nvim-cmp.
- Host: GitHub
- URL: https://github.com/dcampos/cmp-snippy
- Owner: dcampos
- Created: 2021-08-27T00:31:20.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-10-12T01:44:31.000Z (over 2 years ago)
- Last Synced: 2025-03-21T02:41:29.444Z (about 1 year ago)
- Topics: nvim-cmp
- Language: Lua
- Homepage:
- Size: 3.91 KB
- Stars: 51
- Watchers: 2
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# cmp-snippy
[nvim-snippy][1] completion source for [nvim-cmp][2].
[1]: https://github.com/dcampos/nvim-snippy
[2]: https://github.com/hrsh7th/nvim-cmp
## Setup
Install using your favorite plugin manager:
```viml
Plug 'dcampos/cmp-snippy'
```
Enable:
```lua
require 'cmp'.setup {
snippet = {
expand = function(args)
require 'snippy'.expand_snippet(args.body)
end
},
sources = {
{ name = 'snippy' }
}
}
```