Skip to content

Cannot get completion to work #307

@iexos

Description

@iexos

Description

I want to use the completion to find pages and cannot get it to work. I boiled it down to the absolut minimum, what am I missing?

  • vim -u ~/junkyard/init.vim ~/junkyard/index.md
  • start typing tes (or [tes or [x](tes,...) and press C-X C-O
  • expecting completion for test.md but nothing happens

Notes

  • :WikiPages, <cr> and other functionality works as expected
  • C-X C-O works for e.g. python with this init.vim
  • :verbose set omnifunc?: omnifunc=wiki#complete#omnicomplete Last set from ~/.local/share/nvim/plugged/wiki.vim/autoload/wiki/buffer.vim line 11

Minimal working example

Files:

$ ls ~/junkyard/wiki
index.md  test.md

neovim: NVIM v0.9.0

minimal init.vim:

let &rtp  = '~/.local/share/nvim/plugged/wiki.vim,' . &rtp
let g:wiki_root = '~/junkyard/wiki'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions