Eandrju / cellular-automaton.nvim

A useless plugin that might help you cope with stubbornly broken tests or overall lack of sense in life. It lets you execute aesthetically pleasing, cellular automaton animations based on the content of neovim buffer.
MIT License
1.89k stars 34 forks source link

E5108: module 'cellular-automaton' not found #11

Closed CuddlyBunion341 closed 1 year ago

CuddlyBunion341 commented 1 year ago

After including the cellular-automaton plugin in my init.lua file, I get the "module 'cellular-automaton' not found" error when trying to use the plugin. I am using the basic neovim kickstart configuration with treesitter configured and the following lines added from a previous issue.

Help would be very appreciated!

Additional info

My configuration file:

   63 ┊ -- Cellular automata
   64 ┊ use { 'eandrju/cellular-automaton.nvim', requires = 'nvim-treesitter/nvim-treesitter' }
   65 ┊ local function animate(type)
   66 ┊ ┊ require('cellular-automaton').start_animation(type)
   67 ┊ end
   68 ┊
   79 ┊ vim.keymap.set('n', '<leader>fml', function() animate('make_it_rain') end)

The error log:

E5108: Error executing lua: /Users/********/.config/nvim/init.lua:66: module 'cellular-automaton' not found:
        no field package.preload['cellular-automaton']
        no file './cellular-automaton.lua'
        no file '/opt/homebrew/share/luajit-2.1.0-beta3/cellular-automaton.lua'
        no file '/usr/local/share/lua/5.1/cellular-automaton.lua'
        no file '/usr/local/share/lua/5.1/cellular-automaton/init.lua'
        no file '/opt/homebrew/share/lua/5.1/cellular-automaton.lua'
        no file '/opt/homebrew/share/lua/5.1/cellular-automaton/init.lua'
        no file '/Users/********/.cache/nvim/packer_hererocks/2.1.0-beta3/share/lua/5.1/cellular-automaton.lua'
        no file '/Users/********/.cache/nvim/packer_hererocks/2.1.0-beta3/share/lua/5.1/cellular-automaton/init.lua'
        no file '/Users/********/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/luarocks/rocks-5.1/cellular-automaton.lua'
        no file '/Users/********/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/luarocks/rocks-5.1/cellular-automaton/init.lua'
        no file './cellular-automaton.so'
        no file '/usr/local/lib/lua/5.1/cellular-automaton.so'
        no file '/opt/homebrew/lib/lua/5.1/cellular-automaton.so'
        no file '/usr/local/lib/lua/5.1/loadall.so'
        no file '/Users/********/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/lua/5.1/cellular-automaton.so'
Eandrju commented 1 year ago

@CuddlyBunion341 Hey, did you install the plugin with ":PackerSync" command after modifying the config file?

CuddlyBunion341 commented 1 year ago

Thank you for mentioning ":PackerSync", solved the Issue!