A dark and earthy colorscheme for Neovim. (mirror) github.com/ptdewey/darkearth-nvim
neovim neovim-colorscheme fennel
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix/doc: fixed build issues, improved readme styling

ptdewey 7dd4179f 02befda1

+38 -46
+7 -5
README.md
··· 1 - # darkearth-nvim 1 + <h1 align="center">DarkEarth Neovim</h1> 2 2 3 - A dark and earthy colorscheme for Neovim. 3 + <p align="center"> 4 + A dark and earthy colorscheme for Neovim. 5 + </p> 4 6 5 7 <p align="center"> 6 8 <img src="assets/color_bar.png" alt="DarkEarth palette"/> ··· 38 40 vim.cmd.colorscheme("darkearth") 39 41 ``` 40 42 41 - ## Build and Modify Colorscheme 43 + ## Build or Modify 42 44 43 45 1. Ensure [lush.nvim](https://github.com/rktjmp/lush.nvim) and [shipwright.nvim](https://github.com/rktjmp/shipwright.nvim) are installed 44 46 2. Add new modifications to [lush_theme/darkearth.lua](lush_theme/darkearth.lua) 45 - 3. Rebuild the colorscheme using `./build/build.sh` 47 + 3. Rebuild the colorscheme using `./build.sh` 46 48 47 49 48 - ## Base16 Colorscheme 50 + ## Extras 49 51 50 52 I have also included a base16 colorscheme script [extras/base16-darkearth.sh](extras/base16-darkearth.sh) that can be used to set shell colors. 51 53
+23
build.sh
··· 1 + #!/usr/bin/env bash 2 + 3 + export LUA_PATH=./lush_theme/darkearth.lua 4 + 5 + nvim --headless +Shipwright +qa 6 + 7 + cat << x0 > ./colors/darkearth.vim 8 + set background=dark 9 + hi! clear 10 + 11 + if exists("syntax_on") 12 + syntax reset 13 + endif 14 + 15 + let colors_name="darkearth" 16 + let g:colors_name="darkearth" 17 + 18 + $(sed 's/^highlight/hi/' ./colors/darkearth.tmp | sort) 19 + x0 20 + 21 + rm ./colors/darkearth.tmp 22 + 23 + echo "DarkEarth vim build complete"
-24
build/build.sh
··· 1 - #!/usr/bin/env bash 2 - 3 - # fix build issue when using nix 4 - export LUA_PATH=./lush_theme/darkearth.lua 5 - 6 - nvim --headless +Shipwright +qa 7 - 8 - cat << x0 > ./colors/darkearth.vim 9 - set background=dark 10 - hi! clear 11 - 12 - if exists("syntax_on") 13 - syntax reset 14 - endif 15 - 16 - let colors_name="darkearth" 17 - let g:colors_name="darkearth" 18 - 19 - $(sed 's/^highlight/hi/' ./colors/darkearth.tmp | sort) 20 - x0 21 - 22 - rm ./colors/darkearth.tmp 23 - 24 - echo "DarkEarth vim build complete"
build/shipwright_build.lua shipwright_build.lua
+8 -17
lush_theme/darkearth.lua
··· 12 12 local theme = lush(function(injected_functions) 13 13 local sym = injected_functions.sym 14 14 return { 15 - -- Normal { fg=hsl(46, 51, 68), bg=hsl(0, 0, 13), }, -- NOTE: original 16 15 Normal { fg=hsl(46, 51, 68), bg=bgc, }, 17 16 SpecialKey { fg=hsl(46, 51, 68), }, 18 17 TermCursor { gui="reverse", }, ··· 32 31 Substitute { Search }, 33 32 MoreMsg { fg=hsl(120, 17, 45), gui="bold", }, 34 33 ModeMsg { gui="bold", }, 35 - -- LineNr { fg=hsl(0, 0, 40), bg=lnbg, }, 36 34 LineNr { fg=hsl(71, 27, 40), bg=lnbg, }, 37 35 DefLineNr { fg=lnfg, bg=lnbg, }, 38 36 LineNrAbove { DefLineNr }, ··· 42 40 Question { fg=hsl(120, 17, 45), gui="bold", }, 43 41 StatusLine { fg=hsl(46, 51, 68), gui="bold", bg=bgc, }, 44 42 MsgSeparator { StatusLine }, 45 - -- StatusLineNC { fg=hsl(0, 0, 40), gui="bold", bg=bgc, }, 46 43 StatusLineNC { fg=lnfg, gui="bold", bg=bgc, }, 47 44 Ignore { fg=hsl(20, 5, 27), }, 48 45 VertSplit { fg=lnbg, bg=bgc, }, ··· 113 110 NvimInvalid { Error }, 114 111 Todo { fg=hsl(46, 51, 68), gui="bold", }, 115 112 sym"@text.todo" { Todo }, 116 - String { fg=hsl(33, 40, 50), }, -- NOTE: changed l from 33, s from 22 113 + String { fg=hsl(33, 40, 50), }, 117 114 sym"@string" { String }, 118 115 NvimString { String }, 119 116 phpHereDoc { String }, ··· 130 127 -- Number { fg=hsl(71, 27, 40), }, -- NOTE: original 131 128 -- Number { fg=hsl(60, 20, 50), }, 132 129 -- Number { fg=hsl(40, 55, 60), }, 133 - -- Number { fg=hsl(25, 70, 60), }, 134 130 -- Number { fg=hsl(300, 10, 55), }, 135 131 Number { fg=hsl(15, 40, 50), }, 136 132 Float { Number }, 137 133 sym"@number" { Number }, 138 134 NvimNumber { Number }, 139 135 rubyInstanceVariable { Number }, 140 - -- Boolean { fg=hsl(72, 27, 40), }, 141 136 Boolean { Number }, 142 137 sym"@boolean" { Boolean }, 143 138 Function { fg=hsl(72, 27, 40), }, ··· 149 144 Identifier { fg=hsl(46, 51, 68), }, 150 145 sym"@text.reference" { Identifier }, 151 146 sym"@parameter" { Identifier }, 152 - -- Field { fg=hsl(80, 30, 40), }, -- NOTE: changed from Identifier 153 - -- Field { fg=hsl(140, 20, 50), }, 154 147 Field { fg=hsl(26, 47, 50), }, 155 - sym"@field" { Field }, -- NOTE: changed from Identifier 156 - sym"@property" { Field }, -- NOTE: changed from Identifier 148 + sym"@field" { Field }, 149 + sym"@property" { Field }, 157 150 sym"@variable" { Identifier }, 158 151 sym"@namespace" { Identifier }, 159 152 sym"@lsp.type.parameter" { Identifier }, ··· 170 163 phpDefine { Statement }, 171 164 helpHyperTextEntry { Statement }, 172 165 Keyword { fg=hsl(120, 17, 45), }, 173 - -- Keyword { fg=hsl(30, 45, 60), }, 174 166 sym"@keyword" { Keyword }, 175 167 PreProc { Keyword }, 176 168 Include { PreProc }, ··· 192 184 SpecialComment { Special }, 193 185 Debug { Special }, 194 186 sym"@constant.builtin" { Special }, 195 - sym"@function.builtin" { Function }, -- NOTE: changed from Special (maybe change to function) 187 + sym"@function.builtin" { Function }, 196 188 sym"@constructor" { Special }, 197 189 TelescopeMatching { Special }, 198 190 TelescopeResultsFileIcon { Special }, 199 191 Delimiter { fg=hsl(46, 25, 40), }, 200 - DelimiterLight { fg=hsl(46, 51, 68), }, -- NOTE: custom color 201 - Operator { fg=hsl(140, 20, 50), }, -- NOTE: changed from Delimiter 202 - -- Operator { fg=hsl(28, 60, 50), }, 192 + DelimiterLight { fg=hsl(46, 51, 68), }, 193 + Operator { fg=hsl(140, 20, 50), }, 203 194 sym"@punctuation" { Delimiter }, 204 - sym"@punctuation.bracket" { DelimiterLight }, -- NOTE: custom definition 195 + sym"@punctuation.bracket" { DelimiterLight }, 205 196 MyParentheses { Delimiter }, 206 197 NvimParenthesis { Delimiter }, 207 198 NvimColon { Delimiter }, ··· 240 231 DiagnosticSignHint { fg=hsl(120, 17, 45), bg=lnbg, }, 241 232 DiagnosticDeprecated { gui="strikethrough", sp=hsl(33, 22, 33), }, 242 233 DiagnosticUnnecessary { fg=hsl(20, 5, 40), }, 243 - Comment { fg=hsl(30, 8, 40), gui="italic", }, -- NOTE: changed l from 40, italic, s 0, h 0 234 + Comment { fg=hsl(30, 8, 40), gui="italic", }, 244 235 sym"@text.literal" { Comment }, 245 236 sym"@comment" { Comment }, 246 237 sym"@lsp.type.comment" { Comment },