xiyaowong / transparent.nvim

Remove all background colors to make nvim transparent
821 stars 24 forks source link

How to set Transparency at Start init.lua #3

Closed dedguy21 closed 2 years ago

dedguy21 commented 2 years ago

New to Neovim , need help with the lua script ... I get this error when trying to put this command in the settings

E492: Not an editor command: TransparentEnable

This plugin works better than I hoped. Just for some reason, I'm not able to get transparency from the start. I also get an error when trying to set TransparentEnable as a neovim command or global option.

I'm trying to write the Lua, but if it has to be vimscript I'll do that too. I would like my terminal to be transparent when opening nvim, and I choose if I want to disable it.

xiyaowong commented 2 years ago

you should run TransparentEnable after this plugin loaded

xiyaowong commented 2 years ago

recommend to use global variable let g:transparent_enabled = v:true, for lua vim.g.transparent_enabled = true