Replies: 25 comments 2 replies
-
| 
         Same here  | 
  
Beta Was this translation helpful? Give feedback.
-
| 
         hey @kevinm6 do you know how we could avoid this? i think we don't have to force users to have a global lua 5.1 install (that fixes it) since it will be loaded by luajit anyway right?  | 
  
Beta Was this translation helpful? Give feedback.
-
| 
         Pinned this and disabled rockspec until we find a workaround @abdulrahmanDev1 @kevinm6  | 
  
Beta Was this translation helpful? Give feedback.
-
| 
         Hi @3rd .. unfortunately for now it's required from Lazy the [email protected] ! rocks = {
  hererocks = true
}Another pointer where it was discussed  | 
  
Beta Was this translation helpful? Give feedback.
-
| 
         What I think I'm missing is why is having a specific Lua version installed externally required when the end goal is pulling luarocks that will be executed with the LuaJIT bundled by Neovim anyway - I don't think I understand how it works. Is it for a build step on some of the rocks? Or is the external Lua installation used at runtime?  | 
  
Beta Was this translation helpful? Give feedback.
-
| 
         I think is due to some internals of Lazy that are really integrated with Neovim, since that's the one that needs [email protected] and the way it loads the modules at runtime. I don't think depends on something relative to LuaJIT or the rock build itself, since I'm capable of build it without Lua5.1 and in multiple ways outside NeoVim  | 
  
Beta Was this translation helpful? Give feedback.
-
| 
         Hey guys @kevinm6 i'm stucked in the same point, so should i install globally lua 5.1 and also the the hererocks key on true, like this?  | 
  
Beta Was this translation helpful? Give feedback.
-
| 
         I think if you install 5.1 globally it should just work, luarocks.nvim says it needs a global LuaJIT/Lua 5.1 installation.  | 
  
Beta Was this translation helpful? Give feedback.
-
| 
         Thank you @3rd  | 
  
Beta Was this translation helpful? Give feedback.
-
| 
         @3rd  luajit is installed with neovim when using   | 
  
Beta Was this translation helpful? Give feedback.
-
        
 Sorry, maybe I wasn't clear.. the option  There are other ways you can fix it, as reported from @3rd, like just install and make lua5.1 available on $PATH or if you stick with   | 
  
Beta Was this translation helpful? Give feedback.
-
        
 @kapral18  | 
  
Beta Was this translation helpful? Give feedback.
-
| 
         @kevinm6  @3rd working on my end without erros, i've added the    rocks = {
    hererocks = true,
  }, | 
  
Beta Was this translation helpful? Give feedback.
-
| 
         Thank you guys it's fixed for me too after I added the hererocks line I tried to do it before but it didn't work out for me,  | 
  
Beta Was this translation helpful? Give feedback.
-
        
 @sebalfaro @abdulrahmanDev1  | 
  
Beta Was this translation helpful? Give feedback.
-
| 
         @kevinm6 no no, your contribution is great, so Lazy requires Lua 5.1 installed correct?  | 
  
Beta Was this translation helpful? Give feedback.
-
| 
         @3rd at least in my case it wasn't necessary to install neither Lua 5.1 nor magick locally, just adding the   | 
  
Beta Was this translation helpful? Give feedback.
-
        
 Yes, Lazy requires lua5.1 for the luarocks, due to its integration. 
 I think should be fine if it's okay for you!  | 
  
Beta Was this translation helpful? Give feedback.
-
| 
         Thanks for everyone's help in this thread. Since I didn't have any other rocks installed in my config, I found that adding the  return {
  {
    '3rd/image.nvim',
    -- Utility function to disable on Windows system
    enabled = function()
      if vim.fn.has 'win32' == 1 then
        return false
      else
        return true
      end
    end,
    dependencies = {
      'leafo/magick',
    },
    opts = {
      -- ... image.nvim config
    },
  },
} | 
  
Beta Was this translation helpful? Give feedback.
-
| 
         @joncrangle I think you can improve it and use Lazy  return {
{
   '3rd/image.nvim',
    -- Disable on Windows system
    cond = function()
       return vim.fn.has 'win32' ~= 1 
    end,
    dependencies = {
       'leafo/magick',
    },
    opts = {
       -- image.nvim config
    }
}
} | 
  
Beta Was this translation helpful? Give feedback.
-
| 
         Any updates on this issue?  | 
  
Beta Was this translation helpful? Give feedback.
-
        
 What issue are you encountering?  | 
  
Beta Was this translation helpful? Give feedback.
-
| 
         Thank you for great plugin! I recently developed plugin utilizing image.nvim. I did some research about luarocks and lazy.nvim, and considering if we can re-enable rockspec support for lazy.nvim (which was introduced in #185). I wrote PR in my fork which should resolve this issue. If you would like, I will happily send PR to your repo.  | 
  
Beta Was this translation helpful? Give feedback.
-
| 
         Hey, thanks awesome! Please open the PR <3  | 
  
Beta Was this translation helpful? Give feedback.
-
| 
         Sorry for bringing that up again, but for me it still does not work actually. I followed the instructions in the Readme: 
 
 This throws this error when I open nvim:  MacOS Sequoia  | 
  
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I keep getting this error whenever I open neovim although the plugin is working
Beta Was this translation helpful? Give feedback.
All reactions