doom-one.nvim icon indicating copy to clipboard operation
doom-one.nvim copied to clipboard

Transparency does not work

Open fengwk opened this issue 3 years ago • 2 comments

Transparency does not work on my neovim.

MyEnv:

  • NVIM v0.7.2
  • windows 11 - powershell 7

Error message:

packer.nvim: Error running config for doom-one.nvim: [string "..."]:0: Vim(colorscheme):E5113: Error while calling lua chunk: ...site\pack\packer\opt\doom-one.nvim/lua/doom-one/init.lua:43: 'bg' is not a valid color
stack traceback:
^I[C]: in function 'nvim_set_hl'
^I...site\pack\packer\opt\doom-one.nvim/lua/doom-one/init.lua:43: in function 'set_hl'
^I...site\pack\packer\opt\doom-one.nvim/lua/doom-one/init.lua:74: in function 'set_colorscheme'
^I...a\site\pack\packer\opt\doom-one.nvim\colors\doom-one.lua:9: in main chunk
^I[C]: in function 'cmd'
^I[string "..."]: in function <[string "..."]:0>
^I[C]: in function 'pcall'
^I...ers\fengwk\AppData\Local\nvim\plugin\packer_compiled.lua:60: in function 'try_loadstring'
^I...ers\fengwk\AppData\Local\nvim\plugin\packer_compiled.lua:96: in function <...ers\fengwk\AppData\Local\nvim\plugin\packer_compiled.lua:10>
^I[C]: in function 'pcall'
Press ENTER or type command to continue
^I...ers\fengwk\AppData\Local\nvim\plugin\packer_compiled.lua:10: in main chunk

I see is that the nvim_set_hl function cannot receive bg, what should I do?

-- init.lua 74
set_hl("EndOfBuffer", { bg = "bg", fg = "bg" })

-- init.lua 43
local function set_hl(group, values)
	vim.api.nvim_set_hl(0, group, values)
end

fengwk avatar Aug 22 '22 15:08 fengwk

Woops, thought it would work based on documentation. It seems like I'll need to manually set NONE as the background for some hl groups. Thanks for reporting this, I'll try to fix it ASAP!

NTBBloodbath avatar Aug 24 '22 03:08 NTBBloodbath

Great, tank u.

fengwk avatar Aug 24 '22 11:08 fengwk