epwalsh / obsidian.nvim

Obsidian 🤝 Neovim
Apache License 2.0
4.31k stars 197 forks source link

I install with lazy.nvim and obsidian.txt help page is not exist #114

Closed devstefancho closed 1 year ago

devstefancho commented 1 year ago

🐛 Describe the bug

Hello!

I don't know if this is a bug or not, but I need your help searching doc I use lazy.nvim and I successfully install obsidian.nvim but the help page does not exist ( I want to read the doc in vim) Here is my config

return {
  {
    "epwalsh/obsidian.nvim",
    tag = "1.*",
    config = function()
      require("obsidian").setup({
        dir = "~/iCloud/Documents/my-vault",
        notes_subdir = "notes",
      })
    end,
  },
}

I try :h obsidian.txt and also :h obs then try tab key to auto complete, but obsidian doc is not exist

the screenshot is about searching the help page with telescope

image image

Versions

NVIM v0.8.2
Build type: Release
LuaJIT 2.1.0-beta3
Compiled by brew@HMBRW-A-001-M1-005.local

Features: +acl +iconv +tui
See ":help feature-compile"

   system vimrc file: "$VIM/sysinit.vim"
  fall-back for $VIM: "/opt/homebrew/Cellar/neovim/0.8.2/share/nvim"

Run :checkhealth for more info
1.8.0
[NvimTree] "open_on_setup behaviour has been deprecated, please see https://github.com/nvim-tree/nvim-tree.lua/wiki/Open-At-Startup"%
epwalsh commented 1 year ago

Hmm that's odd. @folke, do you have any ideas?

folke commented 1 year ago

Op probably has set config.defaults.lazy = true.

Either change that or add lazy=false to the spec for obsidian. Help files in neovim are only available for loaded plugins

devstefancho commented 1 year ago

@folke cool lazy to false then I can see doc now Thanks

return {
  "epwalsh/obsidian.nvim",
  config = function()
    require("obsidian").setup({
      dir = "~/iCloud/Documents/my-vault",
      daily_notes = {
        folder = "daily",
      },
    })
  end,
  lazy = false,
}