From 36eeaad42d38cc3eb3c7c36343d5d781295d2f04 Mon Sep 17 00:00:00 2001 From: alemi Date: Sat, 15 Apr 2023 22:19:14 +0200 Subject: [PATCH] feat: also theme neo-tree --- README.md | 1 + lua/peak-colorscheme.lua | 14 ++++++++++++++ 2 files changed, 15 insertions(+) diff --git a/README.md b/README.md index 4ae9a17..c1fcdc8 100644 --- a/README.md +++ b/README.md @@ -37,6 +37,7 @@ This colorscheme, apart from theming the builtin syntax, GUI and diffs, applies * [nvim-cmp](https://github.com/hrsh7th/nvim-cmp) * [gitsigns.nvim](https://github.com/lewis6991/gitsigns.nvim) * [nvim-dap](https://github.com/mfussenegger/nvim-dap) + * [neo-tree.nvim](https://github.com/nvim-neo-tree/neo-tree.nvim) * [tinker.nvim](https://github.com/alemidev/tinker.nvim)'s statusline ## Color Palette diff --git a/lua/peak-colorscheme.lua b/lua/peak-colorscheme.lua index f2c5e8e..59a47af 100644 --- a/lua/peak-colorscheme.lua +++ b/lua/peak-colorscheme.lua @@ -102,6 +102,7 @@ function PALETTE:set_syntax_colors() vim.api.nvim_set_hl(0, "Type", HIGHLIGHT(self.orange.normal, nil, nil)) vim.api.nvim_set_hl(0, "Special", HIGHLIGHT(self.yellow.bright, nil, {bold=true})) vim.api.nvim_set_hl(0, "Delimiter", HIGHLIGHT(self.gray.bright, nil, nil)) + vim.api.nvim_set_hl(0, "Directory", HIGHLIGHT(self.blue.bright, nil, nil)) end function PALETTE:set_treesitter_colors() @@ -259,6 +260,18 @@ function PALETTE:set_statusline_colors() vim.api.nvim_set_hl(0, "SpecialMode", HIGHLIGHT(self.black.normal, self.pink.normal, {bold=true})) end +function PALETTE:set_neotree_colors() + vim.api.nvim_set_hl(0, "NeoTreeGitAdded", HIGHLIGHT(self.green.normal, nil, nil)) + vim.api.nvim_set_hl(0, "NeoTreeGitDeleted", HIGHLIGHT(self.red.dark, nil, nil)) + vim.api.nvim_set_hl(0, "NeoTreeGitModified", HIGHLIGHT(self.red.bright, nil, nil)) + vim.api.nvim_set_hl(0, "NeoTreeGitConflict", HIGHLIGHT(self.purple.bright, nil, nil)) + vim.api.nvim_set_hl(0, "NeoTreeGitIgnored", HIGHLIGHT(self.gray.dark, nil, nil)) + vim.api.nvim_set_hl(0, "NeoTreeGitRenamed", HIGHLIGHT(self.pink.normal, nil, nil)) + vim.api.nvim_set_hl(0, "NeoTreeGitStaged", HIGHLIGHT(self.yellow.normal, nil, nil)) + vim.api.nvim_set_hl(0, "NeoTreeGitUnstaged", HIGHLIGHT(self.azure.normal, nil, nil)) + vim.api.nvim_set_hl(0, "NeoTreeGitUntracked", HIGHLIGHT(self.orange.normal, nil, nil)) +end + function PALETTE:set_gitsigns_colors() -- FG BG ATTR vim.api.nvim_set_hl(0, "GitSignsChange", HIGHLIGHT(self.yellow.normal, nil, nil)) @@ -342,6 +355,7 @@ function PALETTE:set_colors() self:set_tab_colors() self:set_statusline_colors() -- addons + self:set_neotree_colors() self:set_treesitter_colors() self:set_gitsigns_colors() self:set_telescope_colors()