Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/LumaKernel/ddc-source-file
Powerful and performant file name completion for ddc.vim.
https://github.com/LumaKernel/ddc-source-file
ddc-source ddc-vim
Last synced: about 2 months ago
JSON representation
Powerful and performant file name completion for ddc.vim.
- Host: GitHub
- URL: https://github.com/LumaKernel/ddc-source-file
- Owner: LumaKernel
- License: mit
- Created: 2021-09-10T15:16:46.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-08-04T18:45:26.000Z (5 months ago)
- Last Synced: 2024-08-04T20:42:38.524Z (5 months ago)
- Topics: ddc-source, ddc-vim
- Language: TypeScript
- Homepage:
- Size: 48.8 KB
- Stars: 46
- Watchers: 3
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ddc-file
[![Doc](https://img.shields.io/badge/doc-%3Ah%20ddc--file-orange.svg?style=flat-square)](doc/ddc-file.txt)
Powerful and performant file name completion for ddc.vim.
## Required
- [denops.vim](https://github.com/vim-denops/denops.vim)
- [ddc.vim](https://github.com/Shougo/ddc.vim)## Configuration
```vim
call ddc#custom#patch_global('sources', ['file'])
call ddc#custom#patch_global('sourceOptions', {
\ 'file': {
\ 'mark': 'F',
\ 'isVolatile': v:true,
\ 'forceCompletionPattern': '\S/\S*',
\ }})
call ddc#custom#patch_filetype(
\ ['ps1', 'dosbatch', 'autohotkey', 'registry'], {
\ 'sourceOptions': {
\ 'file': {
\ 'forceCompletionPattern': '\S\\\S*',
\ },
\ },
\ 'sourceParams': {
\ 'file': {
\ 'mode': 'win32',
\ },
\ }})
```