mirror of
https://github.com/ViViDboarder/wombat.nvim.git
synced 2025-02-22 22:04:07 +00:00
New variants based off different ansi colors
This commit is contained in:
parent
e4ce2b61a3
commit
4fd550de43
19
colors/wombat.vim
Normal file
19
colors/wombat.vim
Normal file
@ -0,0 +1,19 @@
|
||||
" You probably always want to set this in your vim file
|
||||
let g:colors_name='wombat'
|
||||
|
||||
" By setting our module to nil, we clear lua's cache,
|
||||
" which means the require ahead will *always* occur.
|
||||
"
|
||||
" This isn't strictly required but it can be a useful trick if you are
|
||||
" incrementally editing your config a lot and want to be sure your themes
|
||||
" changes are being picked up without restarting neovim.
|
||||
"
|
||||
" Note if you're working in on your theme and have :Lushify'd the buffer,
|
||||
" your changes will be applied with our without the following line.
|
||||
"
|
||||
" The performance impact of this call can be measured in the hundreds of
|
||||
" *nanoseconds* and such could be considered 'production safe'.
|
||||
lua package.loaded['lush_theme.lush_template'] = nil
|
||||
|
||||
" include our theme file and pass it to lush to apply
|
||||
lua require('lush')(require('lush_theme.wombat_lush').with_ansi("ansi_iterm"))
|
@ -16,4 +16,4 @@ let g:colors_name='wombat_classic'
|
||||
lua package.loaded['lush_theme.lush_template'] = nil
|
||||
|
||||
" include our theme file and pass it to lush to apply
|
||||
lua require('lush')(require('lush_theme.wombat_classic'))
|
||||
lua require('lush')(require('lush_theme.wombat_classic').with_ansi("ansi_lush"))
|
||||
|
19
colors/wombat_classic_256mod.vim
Normal file
19
colors/wombat_classic_256mod.vim
Normal file
@ -0,0 +1,19 @@
|
||||
" You probably always want to set this in your vim file
|
||||
let g:colors_name='wombat_classic_256mod'
|
||||
|
||||
" By setting our module to nil, we clear lua's cache,
|
||||
" which means the require ahead will *always* occur.
|
||||
"
|
||||
" This isn't strictly required but it can be a useful trick if you are
|
||||
" incrementally editing your config a lot and want to be sure your themes
|
||||
" changes are being picked up without restarting neovim.
|
||||
"
|
||||
" Note if you're working in on your theme and have :Lushify'd the buffer,
|
||||
" your changes will be applied with our without the following line.
|
||||
"
|
||||
" The performance impact of this call can be measured in the hundreds of
|
||||
" *nanoseconds* and such could be considered 'production safe'.
|
||||
lua package.loaded['lush_theme.lush_template'] = nil
|
||||
|
||||
" include our theme file and pass it to lush to apply
|
||||
lua require('lush')(require('lush_theme.wombat_classic').with_ansi("ansi_256mod"))
|
@ -16,4 +16,4 @@ let g:colors_name='wombat_lush'
|
||||
lua package.loaded['lush_theme.lush_template'] = nil
|
||||
|
||||
" include our theme file and pass it to lush to apply
|
||||
lua require('lush')(require('lush_theme.wombat_lush'))
|
||||
lua require('lush')(require('lush_theme.wombat_lush').with_ansi("ansi_lush"))
|
||||
|
@ -42,10 +42,13 @@
|
||||
--
|
||||
-- `:lua require('lush').ify()`
|
||||
|
||||
local M = {}
|
||||
|
||||
function M.with_ansi(ansi_colors_name)
|
||||
local lush = require("lush")
|
||||
local hsl = lush.hsl
|
||||
|
||||
local c = require("wombat.colors").from_ansi("ansi_lush")
|
||||
local c = require("wombat.colors").from_ansi(ansi_colors_name)
|
||||
local italic = "italic"
|
||||
|
||||
-- LSP/Linters mistakenly show `undefined global` errors in the spec, they may
|
||||
@ -273,5 +276,7 @@ end)
|
||||
|
||||
-- return our parsed theme for extension or use else where.
|
||||
return theme
|
||||
end
|
||||
|
||||
return M
|
||||
-- vi:nowrap
|
||||
|
@ -42,9 +42,12 @@
|
||||
--
|
||||
-- `:lua require('lush').ify()`
|
||||
|
||||
local M = {}
|
||||
|
||||
function M.with_ansi(ansi_colors_name)
|
||||
local lush = require("lush")
|
||||
|
||||
local c = require("wombat.colors").from_ansi("ansi_lush")
|
||||
local c = require("wombat.colors").from_ansi(ansi_colors_name)
|
||||
local classic = require("lush_theme.wombat_classic")
|
||||
|
||||
-- LSP/Linters mistakenly show `undefined global` errors in the spec, they may
|
||||
@ -297,5 +300,8 @@ end)
|
||||
|
||||
-- return our parsed theme for extension or use else where.
|
||||
return theme
|
||||
end
|
||||
|
||||
return M
|
||||
|
||||
-- vi:nowrap
|
||||
|
15
lua/wombat/ansi_256mod.lua
Normal file
15
lua/wombat/ansi_256mod.lua
Normal file
@ -0,0 +1,15 @@
|
||||
-- Define the base color palet for wombat
|
||||
local lush = require("lush")
|
||||
local hsl = lush.hsl
|
||||
|
||||
-- Modify my lush colors with a few tweaks to match the old 256mod colors
|
||||
local M = require("wombat.ansi_lush")
|
||||
|
||||
M.blue = hsl("#88b8f6")
|
||||
|
||||
M.bright_green = hsl("#cae982")
|
||||
|
||||
M.foreground = hsl("#e3e0d7")
|
||||
M.background = hsl("#242424")
|
||||
|
||||
return M
|
35
lua/wombat/ansi_iterm.lua
Normal file
35
lua/wombat/ansi_iterm.lua
Normal file
@ -0,0 +1,35 @@
|
||||
-- Define the base color palet for wombat
|
||||
local lush = require("lush")
|
||||
local hsl = lush.hsl
|
||||
|
||||
local M = {}
|
||||
|
||||
-- ANSI terminal colors
|
||||
M.black = hsl("#000000")
|
||||
M.red = hsl("#ff615a")
|
||||
M.green = hsl("#b1e969")
|
||||
M.yellow = hsl("#ebd99c")
|
||||
M.blue = hsl("#5da9f6")
|
||||
M.magenta = hsl("#e86aff")
|
||||
M.cyan = hsl("#82fff7")
|
||||
M.white = hsl("#dedacf")
|
||||
|
||||
M.bright_black = hsl("#313131")
|
||||
M.bright_red = hsl("#f58c80")
|
||||
M.bright_green = hsl("#ddf88f")
|
||||
M.bright_yellow = hsl("#eee5b2")
|
||||
M.bright_blue = hsl("#a5c7ff")
|
||||
M.bright_magenta = hsl("#ddaaff")
|
||||
M.bright_cyan = hsl("#b7fff9")
|
||||
M.bright_white = hsl("#ffffff")
|
||||
|
||||
M.foreground = hsl("#dedacf")
|
||||
M.background = hsl("#171717")
|
||||
|
||||
M.cursor = hsl("#bbbbbb")
|
||||
M.cursor_text = hsl("#ffffff")
|
||||
|
||||
M.selection_background = hsl("#453b39")
|
||||
M.selection_foreground = hsl("#b6bbc0")
|
||||
|
||||
return M
|
Loading…
x
Reference in New Issue
Block a user