Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to set the background transparent of neo-tree and lualine #36

Closed
yuWorm opened this issue Apr 15, 2023 · 9 comments
Closed

How to set the background transparent of neo-tree and lualine #36

yuWorm opened this issue Apr 15, 2023 · 9 comments

Comments

@yuWorm
Copy link

yuWorm commented Apr 15, 2023

If you use this plug-in, everything else is transparent, but neo-tree and lualine cannot be transparent. I saw that your demo seems to use neo-tree, so I would like to ask how you set it up.

@xiyaowong
Copy link
Owner

You should find their highlights, such as NeotreeNormal, NeotreeNormalNC...

@jrock2004
Copy link

@yuWorm did you ever figure this out?

@TimDiekmann
Copy link

For NeoTree this works for me:

			extra_groups = {
				"NeoTreeCursorLine",
				"NeoTreeDimText",
				"NeoTreeDirectoryIcon",
				"NeoTreeDirectoryName",
				"NeoTreeDotfile",
				"NeoTreeFileIcon",
				"NeoTreeFileName",
				"NeoTreeFileNameOpene",
				"NeoTreeFilterTerm",
				"NeoTreeFloatBorder",
				"NeoTreeFloatTitle",
				"NeoTreeTitleBar",
				"NeoTreeGitAdded",
				"NeoTreeGitConflict",
				"NeoTreeGitDeleted",
				"NeoTreeGitIgnored",
				"NeoTreeGitModified",
				"NeoTreeGitUnstaged",
				"NeoTreeGitUntracke",
				"NeoTreeGitStaged",
				"NeoTreeHiddenByName",
				"NeoTreeIndentMarker",
				"NeoTreeExpander",
				"NeoTreeNormal",
				"NeoTreeNormalNC",
				"NeoTreeSignColumn",
				"NeoTreeStatusLine",
				"NeoTreeStatusLineNC",
				"NeoTreeVertSplit",
				"NeoTreeWinSeparator",
				"NeoTreeEndOfBuffer",
				"NeoTreeRootName",
				"NeoTreeSymbolicLinkTarget",
				"NeoTreeTitleBar",
				"NeoTreeWindowsHidden",
			},

@NeoPrint3D
Copy link

What does the rest of the file look like I'm pretty new to neovim I can't get anything to be transparent besides the background

@jrock2004
Copy link

@NeoPrint3D I copied above and it worked just fine for me

@leoriohub
Copy link

has anyone found the correct groups for lualine?

@niksingh710
Copy link

has anyone found the correct groups for lualine?

looking for same.

rn the workaoround m using is

local theme = function()
	local colors = {
		darkgray = "#16161d",
		gray = "#727169",
		innerbg = nil,
		outerbg = "#16161D",
		normal = "#7e9cd8",
		insert = "#98bb6c",
		visual = "#ffa066",
		replace = "#e46876",
		command = "#e6c384",
	}
	return {
		inactive = {
			a = { fg = colors.gray, bg = colors.outerbg, gui = "bold" },
			b = { fg = colors.gray, bg = colors.outerbg },
			c = { fg = colors.gray, bg = colors.innerbg },
		},
		visual = {
			a = { fg = colors.darkgray, bg = colors.visual, gui = "bold" },
			b = { fg = colors.gray, bg = colors.outerbg },
			c = { fg = colors.gray, bg = colors.innerbg },
		},
		replace = {
			a = { fg = colors.darkgray, bg = colors.replace, gui = "bold" },
			b = { fg = colors.gray, bg = colors.outerbg },
			c = { fg = colors.gray, bg = colors.innerbg },
		},
		normal = {
			a = { fg = colors.darkgray, bg = colors.normal, gui = "bold" },
			b = { fg = colors.gray, bg = colors.outerbg },
			c = { fg = colors.gray, bg = colors.innerbg },
		},
		insert = {
			a = { fg = colors.darkgray, bg = colors.insert, gui = "bold" },
			b = { fg = colors.gray, bg = colors.outerbg },
			c = { fg = colors.gray, bg = colors.innerbg },
		},
		command = {
			a = { fg = colors.darkgray, bg = colors.command, gui = "bold" },
			b = { fg = colors.gray, bg = colors.outerbg },
			c = { fg = colors.gray, bg = colors.innerbg },
		},
	}
end```

then setting theme in lualine opts
```lua
require("lualine").setup({
	options = {
		theme = theme,
	}
})

@xiyaowong
Copy link
Owner

@niksingh710 You can use clear_prefxi for now. Please see readme for details:)

@niksingh710
Copy link

@niksingh710 You can use clear_prefxi for now. Please see readme for details:)

works like charm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants