Closed neuromaancer closed 3 months ago
...hare/nvim/lazy/luarocks.nvim/lua/luarocks-nvim/rocks.lua:53: bad argument #1 to 'ipairs' (table expected, got string) # stacktrace: - /luarocks.nvim/lua/luarocks-nvim/rocks.lua:53 _in_ **ensure** - /luarocks.nvim/lua/luarocks-nvim/init.lua:36 _in_ **setup** - nvim/lua/config/lazy.lua:16 - nvim/init.lua:1
my config with lazy/nvim:
return { { "vhyrro/luarocks.nvim", priority = 1001, -- this plugin needs to run before anything else opts = { rocks = "magick", }, }, { "3rd/image.nvim", ft = { "markdown", "quarto", "md", "ipynb", "txt", }, opts = { backend = "kitty", integrations = { markdown = { enabled = true, clear_in_insert_mode = false, download_remote_images = true, only_render_image_at_cursor = false, filetypes = { "markdown", "vimwiki" }, -- markdown extensions (ie. quarto) can go here }, neorg = { enabled = true, clear_in_insert_mode = false, download_remote_images = true, only_render_image_at_cursor = false, filetypes = { "norg" }, }, }, max_width = 100, max_height = 12, max_width_window_percentage = math.huge, max_height_window_percentage = math.huge, window_overlap_clear_enabled = true, -- toggles images when windows are overlapped window_overlap_clear_ft_ignore = { "cmp_menu", "cmp_docs", "" }, editor_only_render_when_focused = false, -- auto show/hide images when the editor gains/looses focus tmux_show_only_in_active_window = false, -- auto show/hide images in the correct Tmux window (needs visual-activity off) hijack_file_patterns = { "*.png", "*.jpg", "*.jpeg", "*.gif", "*.webp" }, -- render image files as images when opened }, }, }
Not sure, but should the rocks = ... part be a table? @benlubas
rocks = { "magick" }
yes, I think it needs to change the readme.
my config with lazy/nvim: