PICO-8.vim icon indicating copy to clipboard operation
PICO-8.vim copied to clipboard

Lazy Vim?

Open J-H-Freedman opened this issue 1 year ago • 4 comments

Maybe I'm just new to Lazy, but I'm having trouble getting the Pico8Run to work

Here is the code under ~/.config/nvim/lua/plugins/PICO-8.lua

return{
    "bakudankun/pico-8.vim",
  name="PICO-8",
  -- lazy-load on filetype
    ft = "pico8",
}

and here is the error when I run :Pico8Run image

J-H-Freedman avatar Nov 19 '24 18:11 J-H-Freedman

Not a vim expert, but the error here does not seem related to the lazy loading, rather a straightforward PATH configuration issue.

Have you installed the pico8 executable on a directory that’s in your PATH envvar so that you can run it by typing pico8 from anywhere?

merwok avatar Nov 21 '24 01:11 merwok

Oh!! I have not. How do I do that? If there's already a thread or resource drop it here :)

J-H-Freedman avatar Nov 21 '24 19:11 J-H-Freedman

https://www.digitalocean.com/community/tutorials/how-to-view-and-update-the-linux-path-environment-variable

merwok avatar Nov 21 '24 22:11 merwok

@J-H-Freedman You need to set the path to the pico8 executable. See :help g:pico8_config.pico8_path. I don't know what to do with LazyVim.

Bakudankun avatar Nov 22 '24 16:11 Bakudankun

@J-H-Freedman This code worked for me! ty

tovedetered avatar Apr 03 '25 17:04 tovedetered