Mofiqul / dracula.nvim

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

Error after updating plugins #48

Closed TheTrveAnthony closed 1 year ago

TheTrveAnthony commented 1 year ago

Hi,

I just updated all my plugins with vim-plug and now I get an error from dracula.nvim when I launch my nvim, here is how it complains :

Erreur détectée en traitant /home/oguere/.config/nvim/init.vim[3]../home/oguere/.nvimrc[50]../home/oguere/.local/share/nvim/plugged/dracula.nvim/colors/dracula.lua :
E5113: Error while calling lua chunk: ...cal/share/nvim/plugged/dracula.nvim/lua/dracula/init.lua:71: 'bg' must be string or integer
stack traceback:
        [C]: in function 'nvim_set_hl'
        ...cal/share/nvim/plugged/dracula.nvim/lua/dracula/init.lua:71: in function 'apply'
        ...cal/share/nvim/plugged/dracula.nvim/lua/dracula/init.lua:105: in function 'load'
        ...local/share/nvim/plugged/dracula.nvim/colors/dracula.lua:1: in main chunk

I had a look at ~/.local/share/nvim/plugged/dracula.nvim/colors/dracula.lua and couldn't find what's wrong. BTW I haven't changed any settings. Any Idea how to fix this ? (Holy crap the default color scheme looks hideous)

Thanks

TheTrveAnthony commented 1 year ago

Found out what was wrong, I had to change

colors = require('dracula').colors()
colors.bg = false

to

colors = require('dracula').colors()
colors.bg = "none"

in my lua config.