charludo / projectmgr.nvim

Quickly switch between projects and automate startup tasks.
https://github.com/charludo/projectmgr.nvim
GNU General Public License v3.0
122 stars 4 forks source link

Cursor position outside error #1

Closed bmorashad closed 2 years ago

bmorashad commented 2 years ago

Below error occurs when executing :ProjectMgr,

E5108: Error executing lua ...ack/packer/start/projectmgr.nvim/lua/projectmgr/init.lua:150: Cursor position outside buffer
stack traceback:
        [C]: in function 'nvim_win_set_cursor'
        ...ack/packer/start/projectmgr.nvim/lua/projectmgr/init.lua:150: in function 'show_selection'
        [string ":lua"]:1: in main chunk

However it does open the Projects window, and the add keybinding works. But the project doesn't get added

charludo commented 2 years ago

Hi, thanks for opening the issue.

Looks like this was caused by the projects-table initially being empty. Should be fixed now.

bmorashad commented 2 years ago

Hi, damn that was so quick, thanks! Awesome project, minimal & simple! and something I was looking for

charludo commented 2 years ago

Always nice when a project is useful to other people! :D Let me know if there are additional features you´d like to see implemented.