https://github.com/milly/ddu-filter-kensaku
Migemo matcher for ddu.vim
https://github.com/milly/ddu-filter-kensaku
ddu-filter ddu-vim vim vim-denops
Last synced: about 1 year ago
JSON representation
Migemo matcher for ddu.vim
- Host: GitHub
- URL: https://github.com/milly/ddu-filter-kensaku
- Owner: Milly
- License: mit
- Created: 2023-01-17T01:04:08.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2024-08-01T04:26:43.000Z (almost 2 years ago)
- Last Synced: 2025-03-19T22:15:52.855Z (about 1 year ago)
- Topics: ddu-filter, ddu-vim, vim, vim-denops
- Language: TypeScript
- Homepage:
- Size: 18.6 KB
- Stars: 15
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ddu-filter-kensaku
[](LICENSE)
[](doc/ddu-filter-kensaku.txt)
Migemo matcher for ddu.vim
[Migemo][] を利用してローマ字入力により [ddu.vim][] のアイテムから日本語文字列をマッチングします。
単語を空白で区切って入力することで AND 検索ができます。
例: `roma nihongo` で「... ローマ字 ... 日本語 ...」のような文にマッチします。

## Required
以下のプラグインに依存します。
- [denops.vim][]
- [ddu.vim][]
- [kensaku.vim][]
## Installation
1. [Deno][] をインストールします。
2. [vim-plug][] などを利用してプラグインをインストールします。
```
Plug 'vim-denops/denops.vim'
Plug 'Shougo/ddu.vim'
Plug 'lambdalisue/kensaku.vim'
Plug 'Milly/ddu-filter-kensaku'
```
## Configuration
ddu.vim の設定を行います。
```vim
call ddu#custom#patch_global('sourceOptions', #{
\ _: #{
\ matchers: ['matcher_kensaku'],
\ },
\})
" Option: Enable highlight matched text
call ddu#custom#patch_global('filterParams', #{
\ matcher_kensaku: #{
\ highlightMatched: 'Search',
\ },
\})
```
[Deno]: https://deno.land/
[Migemo]: http://0xcc.net/migemo/
[ddu.vim]: https://github.com/Shougo/ddu.vim
[denops.vim]: https://github.com/vim-denops/denops.vim
[kensaku.vim]: https://github.com/lambdalisue/kensaku.vim
[vim-plug]: https://github.com/junegunn/vim-plug