https://github.com/shougo/ddu-source-vim
Vim script source for ddu.vim
https://github.com/shougo/ddu-source-vim
ddu-source ddu-vim
Last synced: 5 months ago
JSON representation
Vim script source for ddu.vim
- Host: GitHub
- URL: https://github.com/shougo/ddu-source-vim
- Owner: Shougo
- License: mit
- Created: 2022-08-24T00:52:32.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-08-01T03:46:11.000Z (11 months ago)
- Last Synced: 2024-08-01T06:05:16.797Z (11 months ago)
- Topics: ddu-source, ddu-vim
- Language: TypeScript
- Homepage:
- Size: 3.91 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ddu-source-vim
Vim script source for ddu.vim
This source collects items from Vim script functions.
## Required
### denops.vim
https://github.com/vim-denops/denops.vim
### ddu.vim
https://github.com/Shougo/ddu.vim
## Configuration
```vim
" Use neomru.vim as ddu source
" https://github.com/Shougo/neomru.vim
function! NeoMruSource()
return map(neomru#_gather_file_candidates(), { _, path -> #{
\ word: path,
\ kind: 'file',
\ action: #{
\ path: path,
\ isDirectory: isdirectory(path),
\ },
\ }})
endfunctioncall ddu#start({'sources': [
\ #{ name: 'vim', params: #{ func: 'NeoMruSource' } },
\ ]})
```