Skip to content

Commit

Permalink
Merge pull request LunarVim#4 from akinsho/feat/neotree-highlights
Browse files Browse the repository at this point in the history
feat: add highlights for neotree
  • Loading branch information
ChristianChiarulli authored Aug 5, 2022
2 parents eb21506 + 0a2b44d commit 314ac68
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 1 deletion.
24 changes: 24 additions & 0 deletions horizon.toml
Original file line number Diff line number Diff line change
Expand Up @@ -407,6 +407,30 @@ NvimTreeSymlink = 'cyan'
NvimTreeRootFolder = 'fg - b'
NvimTreeExecFile = '#9FBA89'

[NeoTree]
NeoTreeFolderIcon = 'fg'
NeoTreeIndentMarker = 'gray'
NeoTreeNormal = 'fg alt_bg'
NeoTreeVertSplit = 'alt_bg alt_bg'
NeoTreeWinSeparator = 'alt_bg alt_bg'
NeoTreeDirectoryName = 'fg'
NeoTreeDirectoryIcon = 'fg'
NeoTreeFileName = 'light_gray'
NeoTreeOpenedFolderName = 'fg - bi'
NeoTreeEmptyFolderName = 'gray - i'
NeoTreeGitIgnored = 'gray - i'
NeoTreeDotfile = 'gray - i'
NeoTreeHiddenByName = 'gray - i'
NeoTreeEndOfBuffer = 'alt_bg'
NeoTreeCursorLine = '- dark_gray'
NeoTreeGitStaged = 'sign_add_alt'
NeoTreeGitUntracked = 'sign_add_alt'
NeoTreeGitDeleted = 'sign_delete'
NeoTreeGitModified = 'sign_change_alt'
NeoTreeSymbolicLinkTarget = 'cyan'
NeoTreeRootName = 'fg - b'
NeoTreeTitleBar = 'dark_gray fg b'

[Lir]
LirFloatNormal = 'fg alt_bg'
LirDir = 'link:Directory'
Expand Down
26 changes: 25 additions & 1 deletion lua/horizon/theme.lua
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,30 @@ theme.set_highlights = function()
hl(0, "NvimTreeRootFolder", { fg = c.fg, bg = 'NONE', bold=true, })
hl(0, "NvimTreeExecFile", { fg = '#9FBA89', bg = 'NONE' })

-- NeoTree
hl(0, "NeoTreeFolderIcon", { fg = c.fg, bg = 'NONE' })
hl(0, "NeoTreeIndentMarker", { fg = c.gray, bg = 'NONE' })
hl(0, "NeoTreeNormal", { fg = c.fg, bg = c.alt_bg })
hl(0, "NeoTreeVertSplit", { fg = c.alt_bg, bg = c.alt_bg })
hl(0, "NeoTreeWinSeparator", { fg = c.alt_bg, bg = c.alt_bg })
hl(0, "NeoTreeDirectoryName", { fg = c.fg, bg = 'NONE' })
hl(0, "NeoTreeDirectoryIcon", { fg = c.fg, bg = 'NONE' })
hl(0, "NeoTreeFileName", { fg = c.light_gray, bg = 'NONE' })
hl(0, "NeoTreeOpenedFolderName", { fg = c.fg, bg = 'NONE', bold=true, italic=true, })
hl(0, "NeoTreeEmptyFolderName", { fg = c.gray, bg = 'NONE', italic=true, })
hl(0, "NeoTreeGitIgnored", { fg = c.gray, bg = 'NONE', italic=true, })
hl(0, "NeoTreeDotfile", { fg = c.gray, bg = 'NONE', italic=true, })
hl(0, "NeoTreeHiddenByName", { fg = c.gray, bg = 'NONE', italic=true, })
hl(0, "NeoTreeEndOfBuffer", { fg = c.alt_bg, bg = 'NONE' })
hl(0, "NeoTreeCursorLine", { fg = 'NONE', bg = c.dark_gray })
hl(0, "NeoTreeGitStaged", { fg = c.sign_add_alt, bg = 'NONE' })
hl(0, "NeoTreeGitUntracked", { fg = c.sign_add_alt, bg = 'NONE' })
hl(0, "NeoTreeGitDeleted", { fg = c.sign_delete, bg = 'NONE' })
hl(0, "NeoTreeGitModified", { fg = c.sign_change_alt, bg = 'NONE' })
hl(0, "NeoTreeSymbolicLinkTarget", { fg = c.cyan, bg = 'NONE' })
hl(0, "NeoTreeRootName", { fg = c.fg, bg = 'NONE', bold=true, })
hl(0, "NeoTreeTitleBar", { fg = c.dark_gray, bg = c.fg, bold=true, })

-- Lir
hl(0, "LirFloatNormal", { fg = c.fg, bg = c.alt_bg })
hl(0, "LirDir", { link = 'Directory' })
Expand Down Expand Up @@ -435,4 +459,4 @@ theme.set_highlights = function()
hl(0, "CratesNvimVersion", { fg = c.hint, bg = 'NONE' })
end

return theme
return theme

0 comments on commit 314ac68

Please sign in to comment.