Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cbarrete/completion-vcard
vCard source for completion-nvim, nvim-compe and nvim-cmp
https://github.com/cbarrete/completion-vcard
email lua neovim nvim-cmp nvim-compe vcard
Last synced: 3 months ago
JSON representation
vCard source for completion-nvim, nvim-compe and nvim-cmp
- Host: GitHub
- URL: https://github.com/cbarrete/completion-vcard
- Owner: cbarrete
- License: mit
- Created: 2021-01-26T19:13:38.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2022-11-27T21:22:01.000Z (almost 2 years ago)
- Last Synced: 2024-05-11T02:32:01.853Z (6 months ago)
- Topics: email, lua, neovim, nvim-cmp, nvim-compe, vcard
- Language: Lua
- Homepage:
- Size: 10.7 KB
- Stars: 7
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# completion-vcard
vCard completion source for [completion-nvim](https://github.com/nvim-lua/completion-nvim), [nvim-compe](https://github.com/hrsh7th/nvim-compe), and [nvim-cmp](https://github.com/hrsh7th/nvim-cmp).
## Usage
For `completion-nvim`:
```lua
require('completion_vcard').setup_completion('~/path/to/vcard/dir')vim.g.completion_chain_complete_list = {
{ complete_items = { 'lsp', 'vCard' }},
{ mode = '' }
}
```For `nvim-compe`:
```lua
require('completion_vcard').setup_compe('~/path/to/vcard/dir')require('compe').setup({
source = {
vCard = true,
-- probably some other sources as well
}
})
```For `nvim-cmp`:
```lua
require('cmp').setup({
-- ...
sources = {
{ name = 'vCard' },
-- ...
},
})require('cmp').register_source('vCard', require('completion_vcard').setup_cmp('~/path/to/vcard/dir'))
```