Skip to content

Trouble setting up new theme #1323

Closed Answered by dpetka2001
avasilic asked this question in Q&A
Discussion options

You must be logged in to vote

Just delete the lines about config = function .... and put at the end of the file vim.cmd([[colorscheme xcodedark]]). This happens because the colorscheme is written in Vimscript instead of Lua and lazy.nvim and when you call the the config function it's expected to require the main Lua module but it can't. See for example the onedark.nvim in the kickstart init.lua file which has a require('onedark').setup{...}, it can require the onedark. But the colorscheme you want to use doesn't have a Lua module to be required. That's why you should put at the end of the init.lua file the command for the colorscheme.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by avasilic
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants