refactor!: move extras in seperate directories
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
## name: Tokyo Night Day
|
||||
## license: MIT
|
||||
## author: Folke Lemaitre
|
||||
## upstream: https://github.com/folke/tokyonight.nvim/raw/main/extras/kitty_tokyonight_day.conf
|
||||
## upstream: https://github.com/folke/tokyonight.nvim/raw/main/extras/kitty/tokyonight_day.conf
|
||||
|
||||
|
||||
background #e1e2e7
|
||||
@@ -3,7 +3,7 @@
|
||||
## name: Tokyo Night Moon
|
||||
## license: MIT
|
||||
## author: Folke Lemaitre
|
||||
## upstream: https://github.com/folke/tokyonight.nvim/raw/main/extras/kitty_tokyonight_moon.conf
|
||||
## upstream: https://github.com/folke/tokyonight.nvim/raw/main/extras/kitty/tokyonight_moon.conf
|
||||
|
||||
|
||||
background #222436
|
||||
@@ -3,7 +3,7 @@
|
||||
## name: Tokyo Night
|
||||
## license: MIT
|
||||
## author: Folke Lemaitre
|
||||
## upstream: https://github.com/folke/tokyonight.nvim/raw/main/extras/kitty_tokyonight_night.conf
|
||||
## upstream: https://github.com/folke/tokyonight.nvim/raw/main/extras/kitty/tokyonight_night.conf
|
||||
|
||||
|
||||
background #1a1b26
|
||||
@@ -3,7 +3,7 @@
|
||||
## name: Tokyo Night Storm
|
||||
## license: MIT
|
||||
## author: Folke Lemaitre
|
||||
## upstream: https://github.com/folke/tokyonight.nvim/raw/main/extras/kitty_tokyonight_storm.conf
|
||||
## upstream: https://github.com/folke/tokyonight.nvim/raw/main/extras/kitty/tokyonight_storm.conf
|
||||
|
||||
|
||||
background #24283b
|
||||
@@ -2,6 +2,7 @@ local M = {}
|
||||
|
||||
local function write(str, fileName)
|
||||
print("[write] extra/" .. fileName)
|
||||
vim.fn.mkdir(vim.fs.dirname("extras/" .. fileName), "p")
|
||||
local file = io.open("extras/" .. fileName, "w")
|
||||
file:write(str)
|
||||
file:close()
|
||||
@@ -38,7 +39,7 @@ function M.setup()
|
||||
for style, style_name in pairs(styles) do
|
||||
config.setup({ style = style })
|
||||
local colors = require("tokyonight.colors").setup({ transform = true })
|
||||
local fname = extra .. "_tokyonight_" .. style .. "." .. ext
|
||||
local fname = extra .. "/tokyonight_" .. style .. "." .. ext
|
||||
colors["_upstream_url"] = "https://github.com/folke/tokyonight.nvim/raw/main/extras/" .. fname
|
||||
colors["_style_name"] = "Tokyo Night" .. style_name
|
||||
write(plugin.generate(colors), fname)
|
||||
|
||||
Reference in New Issue
Block a user