From 965c543aee53950aaddc72c52c976849c6b757fb Mon Sep 17 00:00:00 2001 From: kabinspace Date: Wed, 10 Apr 2024 02:39:42 +0545 Subject: [PATCH] feat(recipes): neo-tree dark theme recipe --- .../recipes/neo-tree-dark/README.md | 7 ++ .../recipes/neo-tree-dark/init.lua | 69 +++++++++++++++++++ 2 files changed, 76 insertions(+) create mode 100644 lua/astrocommunity/recipes/neo-tree-dark/README.md create mode 100644 lua/astrocommunity/recipes/neo-tree-dark/init.lua diff --git a/lua/astrocommunity/recipes/neo-tree-dark/README.md b/lua/astrocommunity/recipes/neo-tree-dark/README.md new file mode 100644 index 000000000..422b0b5ad --- /dev/null +++ b/lua/astrocommunity/recipes/neo-tree-dark/README.md @@ -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. diff --git a/lua/astrocommunity/recipes/neo-tree-dark/init.lua b/lua/astrocommunity/recipes/neo-tree-dark/init.lua new file mode 100644 index 000000000..e8bc03f3d --- /dev/null +++ b/lua/astrocommunity/recipes/neo-tree-dark/init.lua @@ -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 = "󰬊", + }, + }, + }, + }, +}