I was trying to run Shipwright on my custom theme and it kept throwing an error. I copied/pasted the script here, so hopefully this saves someone in the future some hassle :).
The error thrown was that in builder.lua on line 38 when it tries to call func
E5108: Error executing lua ...ite/pack/packer/start/shipwright.nvim/lua/shipwright.lua:18: .../packer/start/shipwright.nvim/lua/shipwright/builder.lua:38: attempt to call local 'func' (a table value)
stack traceback:
[C]: in function 'assert'
...ite/pack/packer/start/shipwright.nvim/lua/shipwright.lua:18: in function 'build'
[string ":lua"]:1: in main chunk
this was my run command
local colorscheme = require("my.theme.name")
local lushwright = require("shipwright.transform.lush")
run(colorscheme,
lushwright.to_vimscript,
{append {"set bg=dark", "let g:colors_name=\"theme_name\""}},
{overwrite, "path/to/output.vim"})
After adding the comma after append the error went away.
I was trying to run Shipwright on my custom theme and it kept throwing an error. I copied/pasted the script here, so hopefully this saves someone in the future some hassle :).
The error thrown was that in builder.lua on line 38 when it tries to call func
this was my run command
After adding the comma after
append
the error went away.