diff --git a/extras/atuin/README.md b/extras/atuin/README.md new file mode 100644 index 000000000..fb8fcfaab --- /dev/null +++ b/extras/atuin/README.md @@ -0,0 +1,22 @@ +# Tokyo Night for Atuin + +This directory contains the Tokyo Night color scheme for [Atuin](https://atuin.sh/). + +## Installation + +1. Choose your preferred Tokyo Night style (Storm, Moon, Night, or Day). +2. Copy the TOML file to your Atuin themes directory: `~/.config/atuin/themes/`. +3. Update your configuration in `~/.config/atuin/config.toml`: + +```toml +[theme] +name = "tokyonight_storm" +``` +For more details on custom theme configuration, see the [official documentation](https://docs.atuin.sh/cli/guide/theming/). + +## Styles + +- **tokyonight_storm.toml**: Tokyo Night Storm (Dark) +- **tokyonight_moon.toml**: Tokyo Night Moon (Dark) +- **tokyonight_night.toml**: Tokyo Night (Dark) +- **tokyonight_day.toml**: Tokyo Night Day (Light) diff --git a/lua/tokyonight/extra/atuin.lua b/lua/tokyonight/extra/atuin.lua new file mode 100644 index 000000000..1cca339b1 --- /dev/null +++ b/lua/tokyonight/extra/atuin.lua @@ -0,0 +1,29 @@ +local util = require("tokyonight.util") + +local M = {} + +--- @param colors ColorScheme +--- @return string +function M.generate(colors) + return util.template([[ +# Theme: ${_style_name} +# Upstream: https://github.com/folke/tokyonight.nvim/tree/main/extras/atuin + +[theme] +name = "${_name}" +parent = "default" + +[colors] +AlertInfo = "${green1}" +AlertWarn = "${yellow}" +AlertError = "${red}" +Annotation = "${terminal_black}" +Base = "${fg}" +Guidance = "${orange}" +Important = "${blue}" +Title = "${magenta}" +Muted = "${dark3}" +]], colors) +end + +return M diff --git a/lua/tokyonight/extra/init.lua b/lua/tokyonight/extra/init.lua index 390add6f9..720983d08 100644 --- a/lua/tokyonight/extra/init.lua +++ b/lua/tokyonight/extra/init.lua @@ -9,6 +9,7 @@ M.extras = { aerc = { ext = "ini", url = "https://git.sr.ht/~rjarry/aerc/", label = "Aerc" }, aider = { ext = "yml", url = "https://aider.chat", label = "Aider" }, alacritty = { ext = "toml", url = "https://github.com/alacritty/alacritty", label = "Alacritty" }, + atuin = { ext = "toml", url = "https://github.com/atuinsh/atuin", label = "Atuin" }, btop = { ext = "theme", url = "https://github.com/aristocratos/btop", label = "Btop++" }, delta = { ext = "gitconfig", url = "https://github.com/dandavison/delta", label = "Delta" }, discord = { ext = "css", url ="https://betterdiscord.app/", label = "(Better-)Discord"},