Mofiqul / dracula.nvim

Dracula colorscheme for neovim written in Lua
MIT License
594 stars 103 forks source link

Error after installing colorscheme and enabling it #37

Closed cdimitroulas closed 4 months ago

cdimitroulas commented 2 years ago

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?

Screenshot 2022-07-11 at 16 57 59
Archie-2021 commented 2 years ago

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

Mofiqul commented 2 years ago

You set the color scheme settings mentioned in README before setting colorscheme dracula

Archie-2021 commented 2 years ago

no , which line are you referring to? i read it and didn't find anything relevant.

cdimitroulas commented 2 years ago

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?

Mofiqul commented 2 years ago

So if you want just default colorscheme dracula. For more configuration do these https://github.com/Mofiqul/dracula.nvim#-configuration first then colorscheme dracula

cdimitroulas commented 2 years ago

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?

Archie-2021 commented 2 years ago

should we install lua? i just leant that it is the language for nvim programming. is it necessary for installing plugins and stuff?

cdimitroulas commented 2 years ago

Lua is built-in to neovim (since v0.5 I believe?), you shouldn't need to install anything

gldtn commented 1 year ago

So if you want just default colorscheme dracula. For more configuration do these https://github.com/Mofiqul/dracula.nvim#-configuration first then colorscheme 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!

Mofiqul commented 1 year ago

opts in lazy call setup with opts i think. try

config = function () 
 colorscheme = "dracula"
end
cdimitroulas commented 4 months ago

@Archie-2021 I figured out what the problem was. I had another plugin installed called vim-colorschemes which has it's own dracula colorscheme that was interfering with this plugin. Once I removed that plugin then Mofiqul/dracula.nvim started working correctly 👍

Archie-2021 commented 4 months ago

@Archie-2021 I figured out what the problem was. I had another plugin installed called vim-colorschemes which has it's own dracula colorscheme that was interfering with this plugin. Once I removed that plugin then Mofiqul/dracula.nvim started working correctly 👍

Hey, This thread is for a long time ago and I almost forget about it. I can't remember what the issue was exactly but I suspect mine was doing something on my part too as I new to vim. Good reminder , maybe I should check up this theme again