added fish theme
This commit is contained in:
@@ -1,16 +0,0 @@
|
||||
local config = require("tokyonight.config")
|
||||
local kitty = require("tokyonight.kitty")
|
||||
|
||||
local function write(str, fileName)
|
||||
local file = io.open("extra/" .. fileName, "w")
|
||||
file:write(str)
|
||||
file:close()
|
||||
end
|
||||
|
||||
config.style = "storm"
|
||||
|
||||
write(kitty.kitty(config), "kitty_tokyonight_storm.conf")
|
||||
|
||||
config.style = "night"
|
||||
|
||||
write(kitty.kitty(config), "kitty_tokyonight_night.conf")
|
||||
53
lua/tokyonight/extra/fish.lua
Normal file
53
lua/tokyonight/extra/fish.lua
Normal file
@@ -0,0 +1,53 @@
|
||||
local util = require("tokyonight.util")
|
||||
|
||||
local M = {}
|
||||
|
||||
function M.fish(config)
|
||||
config = config or require("tokyonight.config")
|
||||
local colors = require("tokyonight.colors").setup(config)
|
||||
|
||||
local fishColors = {}
|
||||
for k, v in pairs(colors) do if type(v) == "string" then fishColors[k] = v:gsub("^#", "") end end
|
||||
|
||||
local fish = util.template([[
|
||||
# TokyoNight Color Palette
|
||||
set -l foreground ${fg}
|
||||
set -l selection ${bg_visual}
|
||||
set -l comment ${comment}
|
||||
set -l red ${red}
|
||||
set -l orange ${orange}
|
||||
set -l yellow ${yellow}
|
||||
set -l green ${green}
|
||||
set -l purple ${purple}
|
||||
set -l cyan ${cyan}
|
||||
set -l pink ${magenta}
|
||||
|
||||
# Syntax Highlighting Colors
|
||||
set -g fish_color_normal $foreground
|
||||
set -g fish_color_command $cyan
|
||||
set -g fish_color_keyword $pink
|
||||
set -g fish_color_quote $yellow
|
||||
set -g fish_color_redirection $foreground
|
||||
set -g fish_color_end $orange
|
||||
set -g fish_color_error $red
|
||||
set -g fish_color_param $purple
|
||||
set -g fish_color_comment $comment
|
||||
set -g fish_color_selection --background=$selection
|
||||
set -g fish_color_search_match --background=$selection
|
||||
set -g fish_color_operator $green
|
||||
set -g fish_color_escape $pink
|
||||
set -g fish_color_autosuggestion $comment
|
||||
|
||||
# Completion Pager Colors
|
||||
set -g fish_pager_color_progress $comment
|
||||
set -g fish_pager_color_prefix $cyan
|
||||
set -g fish_pager_color_completion $foreground
|
||||
set -g fish_pager_color_description $comment
|
||||
|
||||
]], fishColors)
|
||||
|
||||
return fish
|
||||
end
|
||||
|
||||
return M
|
||||
|
||||
22
lua/tokyonight/extra/init.lua
Normal file
22
lua/tokyonight/extra/init.lua
Normal file
@@ -0,0 +1,22 @@
|
||||
package.path = "./lua/?/init.lua;./lua/?.lua"
|
||||
|
||||
local config = require("tokyonight.config")
|
||||
local kitty = require("tokyonight.extra.kitty")
|
||||
local fish = require("tokyonight.extra.fish")
|
||||
|
||||
local function write(str, fileName)
|
||||
print("[write] extra/" .. fileName)
|
||||
local file = io.open("extras/" .. fileName, "w")
|
||||
file:write(str)
|
||||
file:close()
|
||||
end
|
||||
|
||||
config.style = "storm"
|
||||
|
||||
write(kitty.kitty(config), "kitty_tokyonight_storm.conf")
|
||||
write(fish.fish(config), "fish_tokyonight_storm.fish")
|
||||
|
||||
config.style = "night"
|
||||
|
||||
write(kitty.kitty(config), "kitty_tokyonight_night.conf")
|
||||
write(fish.fish(config), "fish_tokyonight_night.fish")
|
||||
Reference in New Issue
Block a user