rktjmp / lush.nvim

Create Neovim themes with real-time feedback, export anywhere.
MIT License
1.44k stars 47 forks source link

Add missing Commas to sample scripts #82

Closed James-DeLorenzo closed 2 years ago

James-DeLorenzo commented 2 years ago

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.

rktjmp commented 2 years ago

Very sorry about that!