rbong / vim-flog

A blazingly fast, stunningly beautiful, exceptionally powerful git branch viewer for Vim/Neovim.
750 stars 22 forks source link

":Flog" command fails with "Unknown function: FugitiveIsGitDir" #110

Closed bus710 closed 1 year ago

bus710 commented 1 year ago

Hi, thanks for this amazing plugin! As soon as I saw the nice lines, I had to try.

The title says what my problem is. My current setup is:


2023-09-03_20-12-13


As the screenshot shows above, I just get the error and nothing happens no matter whatever argument gets passed (-all, -graph, -no-graph). Vim-fugitive works perfectly fine.

Please let me know if there is anything I can try.


bus710 commented 1 year ago

I found an interesting behavior.

I do not know why this happens, but it is working now anyhow.

2023-09-03_21-13-51

rbong commented 1 year ago

It sounds like Fugitive is being lazy-loaded. Some vim and neovim package managers let you configure plugins to not load until you run certain commands. How are you installing Fugitive? Can you post that part of your init.vim or init.lua if you're not installing it manually?

bus710 commented 1 year ago

SmartSelect_20230904_062444_Chrome

You are right. I think I missed the line to disable the lazy.nvim's default lazy loading policy.

return {
  -- Git
  { "tpope/vim-fugitive",
    cmd = "Git",
    lazy = false, -- <= this!
  },
  { 'rbong/vim-flog',
    cmd = "Flog"
  },

Thanks!