ray-x / navigator.lua

Code analysis & navigation plugin for Neovim. Navigate codes like a breeze🎐 Exploring LSP and 🌲Treesitter symbols a piece of 🍰 Take control like a boss 🦍
MIT License
1.31k stars 58 forks source link

guihua error on workspace symbols usage in rust #13

Closed danielnehrig closed 3 years ago

danielnehrig commented 3 years ago

When i use Workspace Symbols and enter my query this error appears Error in context

Error detected while processing TextChangedI Autocommands for "<buffer=16>":
E5108: Error executing lua [string ":lua"]:1: module 'guihua.ListViewCtrl' not found:
        no field package.preload['guihua.ListViewCtrl']
        no file './guihua/ListViewCtrl.lua'
        no file '/home/runner/work/neovim/neovim/.deps/usr/share/luajit-2.1.0-beta3/guihua/ListViewCtrl.lua'
        no file '/usr/local/share/lua/5.1/guihua/ListViewCtrl.lua'
        no file '/usr/local/share/lua/5.1/guihua/ListViewCtrl/init.lua'
        no file '/home/runner/work/neovim/neovim/.deps/usr/share/lua/5.1/guihua/ListViewCtrl.lua'
        no file '/home/runner/work/neovim/neovim/.deps/usr/share/lua/5.1/guihua/ListViewCtrl/init.lua'
        no file '/home/dashie/.cache/nvim/packer_hererocks/2.1.0-beta3/share/lua/5.1/guihua/ListViewCtrl.lua'
        no file '/home/dashie/.cache/nvim/packer_hererocks/2.1.0-beta3/share/lua/5.1/guihua/ListViewCtrl/init.lua'
        no file '/home/dashie/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/luarocks/rocks-5.1/guihua/ListViewCtrl.lua'
        no file '/home/dashie/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/luarocks/rocks-5.1/guihua/ListViewCtrl/init.lua'
        no file './guihua/ListViewCtrl.so'
        no file '/usr/local/lib/lua/5.1/guihua/ListViewCtrl.so'
        no file '/home/runner/work/neovim/neovim/.deps/usr/lib/lua/5.1/guihua/ListViewCtrl.so'
        no file '/usr/local/lib/lua/5.1/loadall.so'
        no file '/home/dashie/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/lua/5.1/guihua/ListViewCtrl.so'
        no file './guihua.so'
        no file '/usr/local/lib/lua/5.1/guihua.so'
        no file '/home/runner/work/neovim/neovim/.deps/usr/lib/lua/5.1/guihua.so'
        no file '/usr/local/lib/lua/5.1/loadall.so'
        no file '/home/dashie/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/lua/5.1/guihua.so'

setup with packer

    use {"ray-x/navigator.lua", requires = {"ray-x/guihua.lua", run = "cd lua/fzy && make"}}

navigator setup

            rust_analyzer = {
                on_attach = function(client, bufnr)
                    custom_attach(client, bufnr)
                end
            },
ray-x commented 3 years ago

I updated the code and it should be fixed. Could you verify that?

danielnehrig commented 3 years ago

can confirm it works thanks for the update!