Trouble setting up new theme #1323
-
Hi there, I'm new to Neovim and recently started using it with the help of kickstart.nvim. While going through the Following the example in the README of this repo, I added the theme to my configuration like this: {
"arzg/vim-colors-xcode",
lazy = false, -- make sure we load this during startup if it is your main colorscheme
priority = 1000, -- make sure to load this before all the other start plugins
config = function()
-- load the colorscheme here
vim.cmd([[colorscheme xcodedark]])
end,
}, The theme appears to have been installed successfully, but the I did encounter a warning in my My entire I'd appreciate any help. Apologies if this isn't the right repository for such questions. Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Just delete the lines about |
Beta Was this translation helpful? Give feedback.
-
Ah, that makes sense. It works now! Thanks for your help |
Beta Was this translation helpful? Give feedback.
Just delete the lines about
config = function ....
and put at the end of the filevim.cmd([[colorscheme xcodedark]])
. This happens because the colorscheme is written in Vimscript instead of Lua andlazy.nvim
and when you call the theconfig
function it's expected to require themain
Lua module but it can't. See for example theonedark.nvim
in the kickstartinit.lua
file which has arequire('onedark').setup{...}
, it can require theonedark
. 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 theinit.lua
file the command for the colorscheme.