https://github.com/dcampos/ddc-snippy
https://github.com/dcampos/ddc-snippy
ddc-source ddc-vim
Last synced: 11 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/dcampos/ddc-snippy
- Owner: dcampos
- Created: 2021-11-11T00:47:57.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2025-06-08T00:31:14.000Z (about 1 year ago)
- Last Synced: 2025-07-02T13:52:12.091Z (12 months ago)
- Topics: ddc-source, ddc-vim
- Language: TypeScript
- Homepage:
- Size: 2.93 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ddc-snippy
[Snippy](https://github.com/dcampos/nvim-snippy) source for [ddc.vim](https://github.com/Shougo/ddc.vim)
## Installation
Install using your favorite plugin manager.
## Configuration
Enable ddc-snippy:
```lua
vim.fn['ddc#custom#patch_global']('sources', { 'snippy' })
```
Enable expanding LSP snippets completed by [ddc-source-nvim-lsp](https://github.com/Shougo/ddc-source-nvim-lsp):
```lua
vim.fn['ddc#custom#patch_global']('sourceParams', {
['nvim-lsp'] = {
snippetEngine = vim.fn['denops#callback#register'](function(body)
require('snippy').expand_snippet(body)
end),
}
})
```