Closed dfsnow closed 1 year ago
@dfsnow - Hi, I can confirm that it's working. This the config I tried
{
'Mofiqul/dracula.nvim',
config = function(self, opts)
local dracula = require("dracula")
dracula.setup({
colors = {
nontext = "red"
},
})
vim.cmd.colorscheme 'dracula'
end
},
Ah, sorry, I should have been clearer in my initial report. It's the call to colors()
that is now throwing an error. Here's a minimal working example of the error using vim-plug. I copied your use of colors()
right from the README.
call plug#begin("~/.vim/vim-plug")
Plug 'Mofiqul/dracula.nvim'
call plug#end()
lua << EOF
local dracula = require("dracula")
dracula.setup({
colors = { nontext = "#474e57" },
overrides = {
FloatBorder = { fg = dracula.colors().bright_white }, -- this line throws the error
}
})
EOF
colorscheme dracula " must load after the nvim plugin
I can agree. All my settings which contain colors where causing problems.
Btw. could you consider some of my changes? I added all this changes because even though you got very nice colors there seem to be missing still some setup for others from the dracula color theme which I added. though I also got some extra ones in there.
For the transparency I made it return none in some areas because if not there is is no true transparency. As well some of the variables you used the same color and I checked the original dracula and placed does colors in there.
Some extra ones are: the highlight when searching, the number highlight from where the cursor is.
@AndreM222 - I have merged the fix, please update. And for your changes, can you please make PR and share the before/after screenshot ?
I get the following error as of commit 2e8ce9c4b4bc160e4926f737ff0678dee0f418e6.
Here's the relevant lua config, which works fine with 52f6d1c48589479d519c1aaea93dba1dd550a7a4.