dracula.nvim
dracula.nvim copied to clipboard
Error after installing colorscheme and enabling it
Hi there,
I just tried installing this theme with vim-plugged and then using it by adding colorscheme dracula to my init.vim, but then I get a bunch of errors. Any idea why this might be?
i am getting an error too, should i install some other plugin or script? i only used vim-plug and added the colorscheme dracula to init.vim file. should i use something extra? i am on windows 10
You set the color scheme settings mentioned in README before setting colorscheme dracula
no , which line are you referring to? i read it and didn't find anything relevant.
Indeed, the README just says to write colorscheme dracula in vimscript or vim.cmd[[colorscheme dracula]] in lua. Which settings are necessary for it to work?
So if you want just default colorscheme dracula. For more configuration do these https://github.com/Mofiqul/dracula.nvim#-configuration first then colorscheme dracula
So if you want just default colorscheme dracula.
That's what I did when I got all those errors. Seems the default doesn't work?
should we install lua? i just leant that it is the language for nvim programming. is it necessary for installing plugins and stuff?
Lua is built-in to neovim (since v0.5 I believe?), you shouldn't need to install anything
So if you want just default
colorscheme dracula. For more configuration do these https://github.com/Mofiqul/dracula.nvim#-configuration first thencolorscheme dracula
I'm using LazyVim
So I created a ~/.config/nvim/lua/plugins/dracula.lua:
return {
-- add dracula
{ "Mofiqul/dracula.nvim" },
-- Configure LazyVim to load dracula
{
"LazyVim/LazyVim",
opts = {
colorscheme = "dracula",
},
},
}
Installed it with lazy.nvim
and now I'm lost as where to place and call this file with the following code: https://github.com/Mofiqul/dracula.nvim#-configuration
Can you please shed a light?
Thanks!
opts in lazy call setup with opts i think. try
config = function ()
colorscheme = "dracula"
end