mistricky / codesnap.nvim

📸 Snapshot plugin with rich features that can make pretty code snapshots for Neovim
MIT License
473 stars 15 forks source link

Generator not found on ARM64 #104

Closed allestaire closed 3 weeks ago

allestaire commented 1 month ago

Already tried installing 1.1.5 but no lock This was the error occuring

...ocal/share/nvim/lazy/codesnap.nvim/lua/codesnap/init.lua:62: module 'generator' not found:
^Ino field package.preload['generator']
cache_loader: module generator not found
cache_loader_lib: module generator not found
^Ino file './generator.lua'
^Ino file '/opt/homebrew/share/luajit-2.1.0-beta3/generator.lua'
^Ino file '/usr/local/share/lua/5.1/generator.lua'
^Ino file '/usr/local/share/lua/5.1/generator/init.lua'
^Ino file '/opt/homebrew/share/lua/5.1/generator.lua'
^Ino file '/opt/homebrew/share/lua/5.1/generator/init.lua'
^Ino file './generator.so'
^Ino file '/usr/local/lib/lua/5.1/generator.so'
^Ino file '/opt/homebrew/lib/lua/5.1/generator.so'
^Ino file '/usr/local/lib/lua/5.1/loadall.so'
return {
  "mistricky/codesnap.nvim",
  version = "1.1.5",
  build = "make",
  keys = {
    { "<leader>cc", "<cmd>CodeSnap<cr>", mode = "x", desc = "Save selected code snapshot into clipboard" },
    { "<leader>cs", "<cmd>CodeSnapSave<cr>", mode = "x", desc = "Save selected code snapshot in ~/Documents" },
  },
  opts = {
    save_path = "~/Documents",
    has_breadcrumbs = true,
    bg_theme = "bamboo",
  },
}
mistricky commented 1 month ago

Hi @allestaire, have you tried build from source?

BloodSucker123 commented 1 month ago

Sorry for the issue, It was been solve, the problem is, my system is missing RUST, it must be installed

Thanks for this cool tech guys

bilalbayasut commented 1 week ago

hi, I get exactly same issue, installing rust did not solve it, how did you solve this ? @BloodSucker123