FeiyouG / commander.nvim

Create and manage keybindings and commands in a more organized manner, and search them quickly through Telescope

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error requiring plugin: module 'commander.nvim' not found

duongdominhchau opened this issue · comments

I got this error while using 0.2 with example config on README.md (the minimal one)

Error detected while processing /home/chau/.config/nvim/init.lua:
E5113: Error while calling lua chunk: /home/chau/.config/nvim/lua/command_palette.lua:1: module 'commander.nvim' not found:
        no field package.preload['commander.nvim']
cache_loader: module commander.nvim not found
cache_loader_lib: module commander.nvim not found
        no file './commander/nvim.lua'
        no file '/usr/share/luajit-2.1/commander/nvim.lua'
        no file '/usr/local/share/lua/5.1/commander/nvim.lua'
        no file '/usr/local/share/lua/5.1/commander/nvim/init.lua'
        no file '/usr/share/lua/5.1/commander/nvim.lua'
        no file '/usr/share/lua/5.1/commander/nvim/init.lua'
        no file './commander/nvim.so'
        no file '/usr/local/lib/lua/5.1/commander/nvim.so'
        no file '/usr/lib/lua/5.1/commander/nvim.so'
        no file '/usr/local/lib/lua/5.1/loadall.so'
        no file './commander.so'
        no file '/usr/local/lib/lua/5.1/commander.so'
        no file '/usr/lib/lua/5.1/commander.so'
        no file '/usr/local/lib/lua/5.1/loadall.so'
stack traceback:
        [C]: in function 'require'
        /home/chau/.config/nvim/lua/command_palette.lua:1: in main chunk
        [C]: in function 'require'
        /home/chau/.config/nvim/init.lua:6: in main chunk

From the paths listed, I can see it looking for commander/nvim/init.lua, so I changed it to just require('commander') and it works.

There was a typo in the README. It has been fixed now.