I’m trying to point Lazy.nvim to a local checkout of my personal colorscheme (goerz
) so that I can develop it.
I have the Lazy setup in my init.lua
file. Also, installing the colorscheme from Github works fine with the following configuration:
{ -- goerz color scheme
'goerz/goerz-colors.nvim',
lazy = false,
priority = 1000, -- make sure to load this before all the other start plugins
}
Now I’ve modified this with a dir
and dev
options:
{ -- goerz color scheme
'goerz/goerz-colors.nvim',
dir = "/home/goerz/Documents/Programming/goerz-colors.nvim/",
dev = true,
lazy = false,
priority = 1000, -- make sure to load this before all the other start plugins
}
I’ve made sure that the directory in dir
exists and is accessible. Still, when I start nvim
, I get an error like
Error detected while processing /home/goerz/.config/nvim/init.lua:
E5113: Error while calling lua chunk: /home/goerz/.config/nvim/init.lua:304: Vim:E185: Cannot find color scheme 'goerz'
stack traceback:
[C]: in function 'colorscheme'
/home/goerz/.config/nvim/init.lua:304: in main chunk
I’ve also tried commenting out the reference to GitHub ( 'goerz/goerz-colors.nvim',
).
How exactly do I tell Lazy.nvim to load a plugin from a local path? It seemed to me like I was following the instructions in the Lazy documentation. Is there something specific to colorschemes that would mess this up?