Skip to content
Discussion options

You must be logged in to vote

I found a solution with this setup. Still not sure whether this is the intended method but it works for me:

require("neo-tree").setup({
	default_component_configs = {
		icon = {
			-- override folder symbols
			folder_closed = "",
			folder_open = "",
			folder_empty = "",
		},
	},
	filesystem = {
		components = {
			git_status_or_empty = function(config, node, state)
				local git_status = require("neo-tree.sources.common.components")
					.git_status(config, node, state).text

				-- not part of git status
				if git_status == nil then
					return {
						text = "-",
						highlight = "NeoTreeDarkFont"
					}
				-- untracked
				elseif git_status == "[?]" then
					return {
						text 

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Leonie-Theobald
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant