Skip to content

Latest commit

 

History

History
77 lines (40 loc) · 1.85 KB

README.md

File metadata and controls

77 lines (40 loc) · 1.85 KB

telescope-vimwiki.nvim

Look for your vimwiki pages using telescope!

Requirements:

Installation and Configuration

  1. Install using your favorite plug-in manager (e.g. packer, vim-plug, etc.)

  2. Configure telescope

  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 <leader>vw <cmd>lua require('telescope').extensions.vimwiki.vimwiki()<cr>

or (if you're loading the extension using the vw extension)

nnoremap <leader>vw <cmd>lua require('telescope').extensions.vw.vw()<cr>

Live grep vimwiki files:

nnoremap <leader>vg <cmd>lua require('telescope').extensions.vw.live_grep()<cr>

TODO

  • Add way of configuring which vimwiki you want, currently just defaults to 0-th wiki.
  • Add support for vimwiki tags.