Skip to content

Commit

Permalink
feat(recipes): neo-tree dark theme recipe
Browse files Browse the repository at this point in the history
  • Loading branch information
kabinspace committed Apr 10, 2024
1 parent 9543573 commit 965c543
Show file tree
Hide file tree
Showing 2 changed files with 76 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lua/astrocommunity/recipes/neo-tree-dark/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# neo-tree.nvim dark theme

Dark themed color scheme for `neo-tree.nvim`

**Repository**: https://github.com/nvim-neo-tree/neo-tree.nvim

_Note_: Highlight groups are designed to match `astrotheme`. Customize the table if you are using different colorscheme.
69 changes: 69 additions & 0 deletions lua/astrocommunity/recipes/neo-tree-dark/init.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
-- theme colors
local colors = {
dark = "#111317",
light = "#777777",
neutral = "#8094B4",
backdrop = "#61afef",
}
return {
"nvim-neo-tree/neo-tree.nvim",
dependencies = {
{
"AstroNvim/astroui",
---@type AstroUIOpts
opts = {
-- highlight groups are set based on astrotheme
highlights = {
astrotheme = { -- set your colorscheme name here
-- indentline marker
NeoTreeIndentMarker = { fg = colors.neutral },

-- file tree window separator
NeoTreeWinSeparator = { fg = colors.dark, bg = colors.dark },

-- info messages
NeoTreeMessage = { link = "NeoTreeDotfile" },

-- normal mode appearance
NeoTreeNormal = { bg = colors.dark },
NeoTreeNormalNC = { link = "NeoTreeNormal" },

-- dotfiles
NeoTreeDotfile = { fg = colors.light },
NeoTreeDotfiles = { link = "NeoTreeDotfile" },

-- tabs
NeoTreeTabActive = { fg = colors.dark, bg = colors.backdrop, bold = true },
NeoTreeTabInactive = { fg = colors.light, bg = colors.dark },

-- tab separators
NeoTreeTabSeparatorActive = { fg = colors.backdrop, bg = colors.backdrop },
NeoTreeTabSeparatorInactive = { link = "NeoTreeWinSeparator" },

-- file operations prompt
NeoTreeTitleBar = { link = "NeoTreeTabActive" },
NeoTreeFloatNormal = { bg = colors.dark },
NeoTreeFloatBorder = { fg = colors.backdrop, bg = colors.dark },
},
},
},
},
},
opts = {
default_component_configs = {
git_status = {
symbols = {
added = "󰬈", -- set icon for git symbols
modified = "󰬔",
deleted = "󰬋",
renamed = "󰬙",
untracked = "󰬛",
ignored = "󰬐",
unstaged = "󰬜",
staged = "󰬚",
conflict = "󰬊",
},
},
},
},
}

0 comments on commit 965c543

Please sign in to comment.