miversen33 / netman.nvim

Neovim (Lua powered) Network Resource Manager
MIT License
338 stars 1 forks source link

Opening Netman Neo-tree window after close fails with error #125

Closed miversen33 closed 1 year ago

miversen33 commented 1 year ago

When you execute :Neotree remote after closing the netman window (via :q), you are given the below error (and the window does not open)

E5108: Error executing lua ...im/site/pack/packer/start/nui.nvim/lua/nui/tree/init.lua:254: Expected Lua number
stack traceback:
        [C]: in function 'nvim_win_get_cursor'
        ...im/site/pack/packer/start/nui.nvim/lua/nui/tree/init.lua:254: in function 'get_node'
        ...packer/start/netman.nvim/lua/netman/ui/neo-tree/init.lua:674: in function 'add_nodes'
        ...packer/start/netman.nvim/lua/netman/ui/neo-tree/init.lua:1057: in function 'navigate'
        ...ker/start/neo-tree.nvim/lua/neo-tree/sources/manager.lua:451: in function 'navigate'
        ...packer/start/neo-tree.nvim/lua/neo-tree/command/init.lua:174: in function 'do_show_or_focus'
        ...packer/start/neo-tree.nvim/lua/neo-tree/command/init.lua:132: in function 'execute'
        ...packer/start/neo-tree.nvim/lua/neo-tree/command/init.lua:140: in function '_command'
        [string ":lua"]:1: in main chunk

Linking the file in question netman/ui/neo-tree/init.lua

miversen33 commented 1 year ago

Closed with #126