Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/uga-rosa/ddc-source-dictionary
Dictionary source for ddc.vim
https://github.com/uga-rosa/ddc-source-dictionary
Last synced: about 2 months ago
JSON representation
Dictionary source for ddc.vim
- Host: GitHub
- URL: https://github.com/uga-rosa/ddc-source-dictionary
- Owner: uga-rosa
- License: mit
- Created: 2023-12-22T01:06:18.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-08-05T01:45:50.000Z (5 months ago)
- Last Synced: 2024-08-05T03:17:04.754Z (5 months ago)
- Language: TypeScript
- Size: 33.2 KB
- Stars: 2
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ddc-source-dictionary
Dictionary source for ddc.vim.
How to load dictionaries:
- Create Trie in memory (Default).
- Local database using Deno KV (Need to set `param-databasePath`).
- Search by external command (e.g. `look`, `ripgrep`) each time (Need to set `param-externalCommand`).# Example
```vim
call ddc#custom#patch_global(#{
\ sources: [ 'dictionary' ],
\ sourceOptions: #{
\ dictionary: #{
\ mark: '[Dict]',
\ },
\ },
\ sourceParams: #{
\ dictionary: #{
\ paths: [ '/usr/share/dict/words' ],
\ exactLength: 2,
\ firstCaseInsensitive: v:true,
\ showPath: v:true,
\ documentCommand: [ 'wn', '${item.word}', '-over' ],
\ },
\ },
\})
```See [doc](./doc/ddc-source-dictionary.txt) for details.