Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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',
\ },
\ }})
```