telescope-vimwiki
所属分类:collect
开发工具:Lua
文件大小:0KB
下载次数:0
上传日期:2022-04-19 18:42:59
上 传 者:
sh-1993
说明: 用望远镜看你的维姆维基,
(look through your vimwiki with your telescope,)
文件列表:
lua/ (0, 2022-04-19)
lua/telescope/ (0, 2022-04-19)
lua/telescope/_extensions/ (0, 2022-04-19)
lua/telescope/_extensions/vimwiki.lua (252, 2022-04-19)
lua/telescope/_extensions/vimwiki/ (0, 2022-04-19)
lua/telescope/_extensions/vimwiki/pickers.lua (4709, 2022-04-19)
lua/telescope/_extensions/vw.lua (283, 2022-04-19)
# telescope-vimwiki.nvim
Look for your vimwiki pages using telescope!
### Requirements:
- [neovim](https://github.com/neovim/neovim) (>= 0.5.0)
- [vimwiki](https://github.com/vimwiki/vimwiki)
- [nvim-telescope](https://github.com/nvim-telescope/telescope.nvim)
- with `live_grep` [support](https://github.com/nvim-telescope/telescope.nvim#suggested-dependencies)
### Installation and Configuration
1. Install using your favorite plug-in manager (e.g. [packer](https://github.com/wbthomason/packer.nvim), [vim-plug](https://github.com/junegunn/vim-plug), etc.)
2. Configure [telescope](https://github.com/nvim-telescope/telescope.nvim)
3. Load extension:
```require('telescope').load_extension('vimwiki')```
or use `vw` alias:
```require('telescope').load_extension('vw')```
If you load as `vw`, you should use `vw` in the commands below.
### Usage
#### List vimwiki pages for default (0-th) vimwiki:
```:Telescope vimwiki```
or use the `vw` alias:
```:Telescope vw```
You can specify a different vimwiki via `index` or `i` for short
```:Telescope vw index=1```
or
```:Telescope vw i=1```
#### Use telescope live grep on your vimwiki files:
```:Telescope vw live_grep```
Also supports specifying a different vimwiki:
```:Telescope vw live_grep i=1```
#### Insert link in current cursor position:
```:Telescope vw link```
#### Keybindings
**Seach vimwiki page filenames:**
```nnoremap vw lua require('telescope').extensions.vimwiki.vimwiki()```
or (if you're loading the extension using the vw extension)
```nnoremap vw lua require('telescope').extensions.vw.vw()```
**Live grep vimwiki files:**
```nnoremap vg lua require('telescope').extensions.vw.live_grep()```
### TODO
- [X] Add way of configuring which vimwiki you want, currently just defaults to 0-th wiki.
- [ ] Add support for vimwiki tags.
近期下载者:
相关文件:
收藏者: