SmiteshP / nvim-navbuddy

A simple popup display that provides breadcrumbs feature using LSP server
Apache License 2.0
762 stars 30 forks source link

Navbuddy can't find nvim navic after nvim update #86

Closed gipo355 closed 8 months ago

gipo355 commented 8 months ago

Hello, after updating everything, i can't get navbuddy to work anymore. Posting my configs here and the stack, hoping to find a way to get it back up, this plugin is insanely good.

neovim version: NVIM v0.10.0-dev-1911+g104565909 OS: arch Lunarvim version: master-b124e8c3

    {
        "SmiteshP/nvim-navbuddy",
        dependencies = {
            "neovim/nvim-lspconfig",
            "SmiteshP/nvim-navic",
            "MunifTanjim/nui.nvim",
            "numToStr/Comment.nvim",         -- Optional
            "nvim-telescope/telescope.nvim", -- Optional
        },
        opts = { lsp = { auto_attach = true } },
    },

it looks like it can't find nvim-navic. Using lazy nvim. nvim-navic looks like disabled.

I also tried installing only nvim-navic, it looks like it lazy.nvim won't install it. the plugin is not even in the pack folder

   Error  17:19:13 notify.error lazy.nvim Failed to run `config` for nvim-navbuddy

...e/pack/lazy/opt/nvim-navbuddy/lua/nvim-navbuddy/init.lua:1: module 'nvim-navic.lib' not found:
    no field package.preload['nvim-navic.lib']
cache_loader: module nvim-navic.lib not found
cache_loader_lib: module nvim-navic.lib not found
    no file './nvim-navic/lib.lua'
    no file '/home/runner/work/neovim/neovim/.deps/usr/share/luajit-2.1/nvim-navic/lib.lua'
    no file '/usr/local/share/lua/5.1/nvim-navic/lib.lua'
    no file '/usr/local/share/lua/5.1/nvim-navic/lib/init.lua'
    no file '/home/runner/work/neovim/neovim/.deps/usr/share/lua/5.1/nvim-navic/lib.lua'
    no file '/home/runner/work/neovim/neovim/.deps/usr/share/lua/5.1/nvim-navic/lib/init.lua'
    no file './nvim-navic/lib.so'
    no file '/usr/local/lib/lua/5.1/nvim-navic/lib.so'
    no file '/home/runner/work/neovim/neovim/.deps/usr/lib/lua/5.1/nvim-navic/lib.so'
    no file '/usr/local/lib/lua/5.1/loadall.so'
    no file './nvim-navic.so'
    no file '/usr/local/lib/lua/5.1/nvim-navic.so'
    no file '/home/runner/work/neovim/neovim/.deps/usr/lib/lua/5.1/nvim-navic.so'
    no file '/usr/local/lib/lua/5.1/loadall.so'

# stacktrace:
  - /nvim-navbuddy/lua/nvim-navbuddy/init.lua:1
  - .local/share/lunarvim/lvim/lua/lvim/plugin-loader.lua:106
  - .local/share/lunarvim/lvim/lua/lvim/plugin-loader.lua:104 _in_ **load**
  - .local/share/lunarvim/lvim/init.lua:17
gipo355 commented 8 months ago

adding to this, if i try to install only nvim-navic, it looks like it stays disabled. it won't install it and create its folder in the plugins dir

{
        "SmiteshP/nvim-navic",
        opts = { lsp = { auto_attach = true } },
    }
  Disabled (3)
    ○ bufferline.nvim 
    ○ nvim-navic 
        dir /home/wolf/.local/share/lunarvim/site/pack/lazy/opt/nvim-navic
        url https://github.com/SmiteshP/nvim-navic

if i ls -la into .../opt/ i see nvim-navbuddy but not nvim-navic.

I tried a clean reinstall of all plugins. what is happening?

gipo355 commented 8 months ago

I manually git cloned nvim-navic into the plugins folder and navbuddy works.

For some reason i can't seem to debug, lazy is not installing nvim-navic (every other plugins get installed) and it's always disabled (nvim-navic)

gipo355 commented 8 months ago

Found the issue, not related to navbuddy.

Lunarvim builtin breadcrumbs ( which i disabled ) depends on navic and disables it too.