From 932e417b032bac90baacccb32ebfc08207b018f7 Mon Sep 17 00:00:00 2001 From: Will Johnston Date: Mon, 22 Jul 2024 06:58:13 -0700 Subject: [PATCH] feat(extra): adding starship(#445) --- extra/carbonfox/starship.toml | 146 +++++++++++++++++++++++++++++ extra/dawnfox/starship.toml | 146 +++++++++++++++++++++++++++++ extra/dayfox/starship.toml | 146 +++++++++++++++++++++++++++++ extra/duskfox/starship.toml | 146 +++++++++++++++++++++++++++++ extra/nightfox/starship.toml | 146 +++++++++++++++++++++++++++++ extra/nordfox/starship.toml | 146 +++++++++++++++++++++++++++++ extra/terafox/starship.toml | 146 +++++++++++++++++++++++++++++ lua/nightfox/extra/starship.lua | 158 ++++++++++++++++++++++++++++++++ misc/extra.lua | 1 + readme.md | 1 + 10 files changed, 1182 insertions(+) create mode 100644 extra/carbonfox/starship.toml create mode 100644 extra/dawnfox/starship.toml create mode 100644 extra/dayfox/starship.toml create mode 100644 extra/duskfox/starship.toml create mode 100644 extra/nightfox/starship.toml create mode 100644 extra/nordfox/starship.toml create mode 100644 extra/terafox/starship.toml create mode 100644 lua/nightfox/extra/starship.lua diff --git a/extra/carbonfox/starship.toml b/extra/carbonfox/starship.toml new file mode 100644 index 00000000..1159c502 --- /dev/null +++ b/extra/carbonfox/starship.toml @@ -0,0 +1,146 @@ +# [metadata] +# name = "carbonfox" +# author = "wjohnsto" +# origin_url = "https://github.com/EdenEast/nightfox.nvim" + +"$schema" = "https://starship.rs/config-schema.json" + +format = """ +[░▒▓](os_bg)\ +$os\ +$username\ +[](bg:dir_bg fg:os_bg)\ +$directory\ +[](fg:dir_bg bg:git_bg)\ +$git_branch\ +$git_status\ +[](fg:git_bg bg:lang_bg)\ +$nodejs\ +$rust\ +$golang\ +[](fg:lang_bg bg:background)\ +\n$character""" + +palette = "carbonfox" + +[palettes.carbonfox] +red = "#ee5396" +green = "#25be6a" +purple = "#be95ff" +yellow = "#08bdba" +os_bg = "#7b7c7e" +os_fg = "#0c0c0c" +dir_bg = "#25be6a" +dir_fg = "#161616" +git_bg = "#08bdba" +git_fg = "#252525" +lang_bg = "#78a9ff" +lang_fg = "#353535" + +[os] +disabled = false +style = "bg:os_bg fg:os_fg" + +[os.symbols] +Windows = "󰍲" +Ubuntu = "󰕈" +SUSE = "" +Raspbian = "󰐿" +Mint = " 󰣭 " +Macos = "󰀵" +Manjaro = "" +Linux = "󰌽" +Gentoo = "󰣨" +Fedora = "󰣛" +Alpine = "" +Amazon = "" +Android = "" +Arch = "󰣇" +Artix = "󰣇" +CentOS = "" +Debian = "󰣚" +Redhat = "󱄛" +RedHatEnterprise = "󱄛" + +[username] +show_always = true +style_user = "bg:os_bg fg:os_fg" +style_root = "bg:os_bg fg:os_fg" +format = "[ $user ]($style)" + +[directory] +style = "fg:dir_fg bg:dir_bg" +format = "[ $path ]($style)" +truncation_length = 3 +truncation_symbol = "…/" + +[directory.substitutions] +"Documents" = "󰈙 " +"Downloads" = " " +"Music" = " " +"Pictures" = " " +"src" = " " + +[git_branch] +symbol = "" +style = "bg:git_bg" +format = '[[ $symbol $branch ](fg:git_fg bg:git_bg)]($style)' + +[git_status] +style = "bg:git_bg" +format = '[[($all_status$ahead_behind )](fg:git_fg bg:git_bg)]($style)' + +[nodejs] +symbol = "" +style = "bg:lang_bg" +format = '[[ $symbol( $version) ](fg:lang_fg bg:lang_bg)]($style)' + +[c] +symbol = " " +style = "bg:lang_bg" +format = '[[ $symbol( $version) ](fg:lang_fg bg:lang_bg)]($style)' + +[rust] +symbol = "" +style = "bg:lang_bg" +format = '[[ $symbol( $version) ](fg:lang_fg bg:lang_bg)]($style)' + +[golang] +symbol = "" +style = "bg:lang_bg" +format = '[[ $symbol( $version) ](fg:lang_fg bg:lang_bg)]($style)' + +[php] +symbol = "" +style = "bg:lang_bg" +format = '[[ $symbol( $version) ](fg:lang_fg bg:lang_bg)]($style)' + +[java] +symbol = " " +style = "bg:lang_bg" +format = '[[ $symbol( $version) ](fg:lang_fg bg:lang_bg)]($style)' + +[kotlin] +symbol = "" +style = "bg:lang_bg" +format = '[[ $symbol( $version) ](fg:lang_fg bg:lang_bg)]($style)' + +[haskell] +symbol = "" +style = "bg:lang_bg" +format = '[[ $symbol( $version) ](fg:lang_fg bg:lang_bg)]($style)' + +[python] +symbol = "" +style = "bg:lang_bg" +format = '[[ $symbol( $version) ](fg:lang_fg bg:lang_bg)]($style)' + +[character] +disabled = false +success_symbol = '[](bold fg:#25be6a)' +error_symbol = '[](bold fg:#ee5396)' +vimcmd_symbol = '[](bold fg:green)' +vimcmd_replace_one_symbol = '[](bold fg:purple)' +vimcmd_replace_symbol = '[](bold fg:purple)' +vimcmd_visual_symbol = '[](bold fg:yellow)' + diff --git a/extra/dawnfox/starship.toml b/extra/dawnfox/starship.toml new file mode 100644 index 00000000..5fd7867d --- /dev/null +++ b/extra/dawnfox/starship.toml @@ -0,0 +1,146 @@ +# [metadata] +# name = "dawnfox" +# author = "wjohnsto" +# origin_url = "https://github.com/EdenEast/nightfox.nvim" + +"$schema" = "https://starship.rs/config-schema.json" + +format = """ +[░▒▓](os_bg)\ +$os\ +$username\ +[](bg:dir_bg fg:os_bg)\ +$directory\ +[](fg:dir_bg bg:git_bg)\ +$git_branch\ +$git_status\ +[](fg:git_bg bg:lang_bg)\ +$nodejs\ +$rust\ +$golang\ +[](fg:lang_bg bg:background)\ +\n$character""" + +palette = "dawnfox" + +[palettes.dawnfox] +red = "#b4637a" +green = "#618774" +purple = "#907aa9" +yellow = "#ea9d34" +os_bg = "#a8a3b3" +os_fg = "#ebe5df" +dir_bg = "#618774" +dir_fg = "#faf4ed" +git_bg = "#ea9d34" +git_fg = "#ebe0df" +lang_bg = "#286983" +lang_fg = "#ebdfe4" + +[os] +disabled = false +style = "bg:os_bg fg:os_fg" + +[os.symbols] +Windows = "󰍲" +Ubuntu = "󰕈" +SUSE = "" +Raspbian = "󰐿" +Mint = " 󰣭 " +Macos = "󰀵" +Manjaro = "" +Linux = "󰌽" +Gentoo = "󰣨" +Fedora = "󰣛" +Alpine = "" +Amazon = "" +Android = "" +Arch = "󰣇" +Artix = "󰣇" +CentOS = "" +Debian = "󰣚" +Redhat = "󱄛" +RedHatEnterprise = "󱄛" + +[username] +show_always = true +style_user = "bg:os_bg fg:os_fg" +style_root = "bg:os_bg fg:os_fg" +format = "[ $user ]($style)" + +[directory] +style = "fg:dir_fg bg:dir_bg" +format = "[ $path ]($style)" +truncation_length = 3 +truncation_symbol = "…/" + +[directory.substitutions] +"Documents" = "󰈙 " +"Downloads" = " " +"Music" = " " +"Pictures" = " " +"src" = " " + +[git_branch] +symbol = "" +style = "bg:git_bg" +format = '[[ $symbol $branch ](fg:git_fg bg:git_bg)]($style)' + +[git_status] +style = "bg:git_bg" +format = '[[($all_status$ahead_behind )](fg:git_fg bg:git_bg)]($style)' + +[nodejs] +symbol = "" +style = "bg:lang_bg" +format = '[[ $symbol( $version) ](fg:lang_fg bg:lang_bg)]($style)' + +[c] +symbol = " " +style = "bg:lang_bg" +format = '[[ $symbol( $version) ](fg:lang_fg bg:lang_bg)]($style)' + +[rust] +symbol = "" +style = "bg:lang_bg" +format = '[[ $symbol( $version) ](fg:lang_fg bg:lang_bg)]($style)' + +[golang] +symbol = "" +style = "bg:lang_bg" +format = '[[ $symbol( $version) ](fg:lang_fg bg:lang_bg)]($style)' + +[php] +symbol = "" +style = "bg:lang_bg" +format = '[[ $symbol( $version) ](fg:lang_fg bg:lang_bg)]($style)' + +[java] +symbol = " " +style = "bg:lang_bg" +format = '[[ $symbol( $version) ](fg:lang_fg bg:lang_bg)]($style)' + +[kotlin] +symbol = "" +style = "bg:lang_bg" +format = '[[ $symbol( $version) ](fg:lang_fg bg:lang_bg)]($style)' + +[haskell] +symbol = "" +style = "bg:lang_bg" +format = '[[ $symbol( $version) ](fg:lang_fg bg:lang_bg)]($style)' + +[python] +symbol = "" +style = "bg:lang_bg" +format = '[[ $symbol( $version) ](fg:lang_fg bg:lang_bg)]($style)' + +[character] +disabled = false +success_symbol = '[](bold fg:#618774)' +error_symbol = '[](bold fg:#b4637a)' +vimcmd_symbol = '[](bold fg:green)' +vimcmd_replace_one_symbol = '[](bold fg:purple)' +vimcmd_replace_symbol = '[](bold fg:purple)' +vimcmd_visual_symbol = '[](bold fg:yellow)' + diff --git a/extra/dayfox/starship.toml b/extra/dayfox/starship.toml new file mode 100644 index 00000000..4a3b3ca9 --- /dev/null +++ b/extra/dayfox/starship.toml @@ -0,0 +1,146 @@ +# [metadata] +# name = "dayfox" +# author = "wjohnsto" +# origin_url = "https://github.com/EdenEast/nightfox.nvim" + +"$schema" = "https://starship.rs/config-schema.json" + +format = """ +[░▒▓](os_bg)\ +$os\ +$username\ +[](bg:dir_bg fg:os_bg)\ +$directory\ +[](fg:dir_bg bg:git_bg)\ +$git_branch\ +$git_status\ +[](fg:git_bg bg:lang_bg)\ +$nodejs\ +$rust\ +$golang\ +[](fg:lang_bg bg:background)\ +\n$character""" + +palette = "dayfox" + +[palettes.dayfox] +red = "#a5222f" +green = "#396847" +purple = "#6e33ce" +yellow = "#ac5402" +os_bg = "#824d5b" +os_fg = "#e4dcd4" +dir_bg = "#396847" +dir_fg = "#f6f2ee" +git_bg = "#ac5402" +git_fg = "#dbd1dd" +lang_bg = "#2848a9" +lang_fg = "#d3c7bb" + +[os] +disabled = false +style = "bg:os_bg fg:os_fg" + +[os.symbols] +Windows = "󰍲" +Ubuntu = "󰕈" +SUSE = "" +Raspbian = "󰐿" +Mint = " 󰣭 " +Macos = "󰀵" +Manjaro = "" +Linux = "󰌽" +Gentoo = "󰣨" +Fedora = "󰣛" +Alpine = "" +Amazon = "" +Android = "" +Arch = "󰣇" +Artix = "󰣇" +CentOS = "" +Debian = "󰣚" +Redhat = "󱄛" +RedHatEnterprise = "󱄛" + +[username] +show_always = true +style_user = "bg:os_bg fg:os_fg" +style_root = "bg:os_bg fg:os_fg" +format = "[ $user ]($style)" + +[directory] +style = "fg:dir_fg bg:dir_bg" +format = "[ $path ]($style)" +truncation_length = 3 +truncation_symbol = "…/" + +[directory.substitutions] +"Documents" = "󰈙 " +"Downloads" = " " +"Music" = " " +"Pictures" = " " +"src" = " " + +[git_branch] +symbol = "" +style = "bg:git_bg" +format = '[[ $symbol $branch ](fg:git_fg bg:git_bg)]($style)' + +[git_status] +style = "bg:git_bg" +format = '[[($all_status$ahead_behind )](fg:git_fg bg:git_bg)]($style)' + +[nodejs] +symbol = "" +style = "bg:lang_bg" +format = '[[ $symbol( $version) ](fg:lang_fg bg:lang_bg)]($style)' + +[c] +symbol = " " +style = "bg:lang_bg" +format = '[[ $symbol( $version) ](fg:lang_fg bg:lang_bg)]($style)' + +[rust] +symbol = "" +style = "bg:lang_bg" +format = '[[ $symbol( $version) ](fg:lang_fg bg:lang_bg)]($style)' + +[golang] +symbol = "" +style = "bg:lang_bg" +format = '[[ $symbol( $version) ](fg:lang_fg bg:lang_bg)]($style)' + +[php] +symbol = "" +style = "bg:lang_bg" +format = '[[ $symbol( $version) ](fg:lang_fg bg:lang_bg)]($style)' + +[java] +symbol = " " +style = "bg:lang_bg" +format = '[[ $symbol( $version) ](fg:lang_fg bg:lang_bg)]($style)' + +[kotlin] +symbol = "" +style = "bg:lang_bg" +format = '[[ $symbol( $version) ](fg:lang_fg bg:lang_bg)]($style)' + +[haskell] +symbol = "" +style = "bg:lang_bg" +format = '[[ $symbol( $version) ](fg:lang_fg bg:lang_bg)]($style)' + +[python] +symbol = "" +style = "bg:lang_bg" +format = '[[ $symbol( $version) ](fg:lang_fg bg:lang_bg)]($style)' + +[character] +disabled = false +success_symbol = '[](bold fg:#396847)' +error_symbol = '[](bold fg:#a5222f)' +vimcmd_symbol = '[](bold fg:green)' +vimcmd_replace_one_symbol = '[](bold fg:purple)' +vimcmd_replace_symbol = '[](bold fg:purple)' +vimcmd_visual_symbol = '[](bold fg:yellow)' + diff --git a/extra/duskfox/starship.toml b/extra/duskfox/starship.toml new file mode 100644 index 00000000..3fa878c9 --- /dev/null +++ b/extra/duskfox/starship.toml @@ -0,0 +1,146 @@ +# [metadata] +# name = "duskfox" +# author = "wjohnsto" +# origin_url = "https://github.com/EdenEast/nightfox.nvim" + +"$schema" = "https://starship.rs/config-schema.json" + +format = """ +[░▒▓](os_bg)\ +$os\ +$username\ +[](bg:dir_bg fg:os_bg)\ +$directory\ +[](fg:dir_bg bg:git_bg)\ +$git_branch\ +$git_status\ +[](fg:git_bg bg:lang_bg)\ +$nodejs\ +$rust\ +$golang\ +[](fg:lang_bg bg:background)\ +\n$character""" + +palette = "duskfox" + +[palettes.duskfox] +red = "#eb6f92" +green = "#a3be8c" +purple = "#c4a7e7" +yellow = "#f6c177" +os_bg = "#6e6a86" +os_fg = "#191726" +dir_bg = "#a3be8c" +dir_fg = "#232136" +git_bg = "#f6c177" +git_fg = "#2d2a45" +lang_bg = "#569fba" +lang_fg = "#373354" + +[os] +disabled = false +style = "bg:os_bg fg:os_fg" + +[os.symbols] +Windows = "󰍲" +Ubuntu = "󰕈" +SUSE = "" +Raspbian = "󰐿" +Mint = " 󰣭 " +Macos = "󰀵" +Manjaro = "" +Linux = "󰌽" +Gentoo = "󰣨" +Fedora = "󰣛" +Alpine = "" +Amazon = "" +Android = "" +Arch = "󰣇" +Artix = "󰣇" +CentOS = "" +Debian = "󰣚" +Redhat = "󱄛" +RedHatEnterprise = "󱄛" + +[username] +show_always = true +style_user = "bg:os_bg fg:os_fg" +style_root = "bg:os_bg fg:os_fg" +format = "[ $user ]($style)" + +[directory] +style = "fg:dir_fg bg:dir_bg" +format = "[ $path ]($style)" +truncation_length = 3 +truncation_symbol = "…/" + +[directory.substitutions] +"Documents" = "󰈙 " +"Downloads" = " " +"Music" = " " +"Pictures" = " " +"src" = " " + +[git_branch] +symbol = "" +style = "bg:git_bg" +format = '[[ $symbol $branch ](fg:git_fg bg:git_bg)]($style)' + +[git_status] +style = "bg:git_bg" +format = '[[($all_status$ahead_behind )](fg:git_fg bg:git_bg)]($style)' + +[nodejs] +symbol = "" +style = "bg:lang_bg" +format = '[[ $symbol( $version) ](fg:lang_fg bg:lang_bg)]($style)' + +[c] +symbol = " " +style = "bg:lang_bg" +format = '[[ $symbol( $version) ](fg:lang_fg bg:lang_bg)]($style)' + +[rust] +symbol = "" +style = "bg:lang_bg" +format = '[[ $symbol( $version) ](fg:lang_fg bg:lang_bg)]($style)' + +[golang] +symbol = "" +style = "bg:lang_bg" +format = '[[ $symbol( $version) ](fg:lang_fg bg:lang_bg)]($style)' + +[php] +symbol = "" +style = "bg:lang_bg" +format = '[[ $symbol( $version) ](fg:lang_fg bg:lang_bg)]($style)' + +[java] +symbol = " " +style = "bg:lang_bg" +format = '[[ $symbol( $version) ](fg:lang_fg bg:lang_bg)]($style)' + +[kotlin] +symbol = "" +style = "bg:lang_bg" +format = '[[ $symbol( $version) ](fg:lang_fg bg:lang_bg)]($style)' + +[haskell] +symbol = "" +style = "bg:lang_bg" +format = '[[ $symbol( $version) ](fg:lang_fg bg:lang_bg)]($style)' + +[python] +symbol = "" +style = "bg:lang_bg" +format = '[[ $symbol( $version) ](fg:lang_fg bg:lang_bg)]($style)' + +[character] +disabled = false +success_symbol = '[](bold fg:#a3be8c)' +error_symbol = '[](bold fg:#eb6f92)' +vimcmd_symbol = '[](bold fg:green)' +vimcmd_replace_one_symbol = '[](bold fg:purple)' +vimcmd_replace_symbol = '[](bold fg:purple)' +vimcmd_visual_symbol = '[](bold fg:yellow)' + diff --git a/extra/nightfox/starship.toml b/extra/nightfox/starship.toml new file mode 100644 index 00000000..c5e7033c --- /dev/null +++ b/extra/nightfox/starship.toml @@ -0,0 +1,146 @@ +# [metadata] +# name = "nightfox" +# author = "wjohnsto" +# origin_url = "https://github.com/EdenEast/nightfox.nvim" + +"$schema" = "https://starship.rs/config-schema.json" + +format = """ +[░▒▓](os_bg)\ +$os\ +$username\ +[](bg:dir_bg fg:os_bg)\ +$directory\ +[](fg:dir_bg bg:git_bg)\ +$git_branch\ +$git_status\ +[](fg:git_bg bg:lang_bg)\ +$nodejs\ +$rust\ +$golang\ +[](fg:lang_bg bg:background)\ +\n$character""" + +palette = "nightfox" + +[palettes.nightfox] +red = "#c94f6d" +green = "#81b29a" +purple = "#9d79d6" +yellow = "#dbc074" +os_bg = "#71839b" +os_fg = "#131a24" +dir_bg = "#81b29a" +dir_fg = "#192330" +git_bg = "#dbc074" +git_fg = "#212e3f" +lang_bg = "#719cd6" +lang_fg = "#29394f" + +[os] +disabled = false +style = "bg:os_bg fg:os_fg" + +[os.symbols] +Windows = "󰍲" +Ubuntu = "󰕈" +SUSE = "" +Raspbian = "󰐿" +Mint = " 󰣭 " +Macos = "󰀵" +Manjaro = "" +Linux = "󰌽" +Gentoo = "󰣨" +Fedora = "󰣛" +Alpine = "" +Amazon = "" +Android = "" +Arch = "󰣇" +Artix = "󰣇" +CentOS = "" +Debian = "󰣚" +Redhat = "󱄛" +RedHatEnterprise = "󱄛" + +[username] +show_always = true +style_user = "bg:os_bg fg:os_fg" +style_root = "bg:os_bg fg:os_fg" +format = "[ $user ]($style)" + +[directory] +style = "fg:dir_fg bg:dir_bg" +format = "[ $path ]($style)" +truncation_length = 3 +truncation_symbol = "…/" + +[directory.substitutions] +"Documents" = "󰈙 " +"Downloads" = " " +"Music" = " " +"Pictures" = " " +"src" = " " + +[git_branch] +symbol = "" +style = "bg:git_bg" +format = '[[ $symbol $branch ](fg:git_fg bg:git_bg)]($style)' + +[git_status] +style = "bg:git_bg" +format = '[[($all_status$ahead_behind )](fg:git_fg bg:git_bg)]($style)' + +[nodejs] +symbol = "" +style = "bg:lang_bg" +format = '[[ $symbol( $version) ](fg:lang_fg bg:lang_bg)]($style)' + +[c] +symbol = " " +style = "bg:lang_bg" +format = '[[ $symbol( $version) ](fg:lang_fg bg:lang_bg)]($style)' + +[rust] +symbol = "" +style = "bg:lang_bg" +format = '[[ $symbol( $version) ](fg:lang_fg bg:lang_bg)]($style)' + +[golang] +symbol = "" +style = "bg:lang_bg" +format = '[[ $symbol( $version) ](fg:lang_fg bg:lang_bg)]($style)' + +[php] +symbol = "" +style = "bg:lang_bg" +format = '[[ $symbol( $version) ](fg:lang_fg bg:lang_bg)]($style)' + +[java] +symbol = " " +style = "bg:lang_bg" +format = '[[ $symbol( $version) ](fg:lang_fg bg:lang_bg)]($style)' + +[kotlin] +symbol = "" +style = "bg:lang_bg" +format = '[[ $symbol( $version) ](fg:lang_fg bg:lang_bg)]($style)' + +[haskell] +symbol = "" +style = "bg:lang_bg" +format = '[[ $symbol( $version) ](fg:lang_fg bg:lang_bg)]($style)' + +[python] +symbol = "" +style = "bg:lang_bg" +format = '[[ $symbol( $version) ](fg:lang_fg bg:lang_bg)]($style)' + +[character] +disabled = false +success_symbol = '[](bold fg:#81b29a)' +error_symbol = '[](bold fg:#c94f6d)' +vimcmd_symbol = '[](bold fg:green)' +vimcmd_replace_one_symbol = '[](bold fg:purple)' +vimcmd_replace_symbol = '[](bold fg:purple)' +vimcmd_visual_symbol = '[](bold fg:yellow)' + diff --git a/extra/nordfox/starship.toml b/extra/nordfox/starship.toml new file mode 100644 index 00000000..a20fdb8b --- /dev/null +++ b/extra/nordfox/starship.toml @@ -0,0 +1,146 @@ +# [metadata] +# name = "nordfox" +# author = "wjohnsto" +# origin_url = "https://github.com/EdenEast/nightfox.nvim" + +"$schema" = "https://starship.rs/config-schema.json" + +format = """ +[░▒▓](os_bg)\ +$os\ +$username\ +[](bg:dir_bg fg:os_bg)\ +$directory\ +[](fg:dir_bg bg:git_bg)\ +$git_branch\ +$git_status\ +[](fg:git_bg bg:lang_bg)\ +$nodejs\ +$rust\ +$golang\ +[](fg:lang_bg bg:background)\ +\n$character""" + +palette = "nordfox" + +[palettes.nordfox] +red = "#bf616a" +green = "#a3be8c" +purple = "#b48ead" +yellow = "#ebcb8b" +os_bg = "#7e8188" +os_fg = "#232831" +dir_bg = "#a3be8c" +dir_fg = "#2e3440" +git_bg = "#ebcb8b" +git_fg = "#39404f" +lang_bg = "#81a1c1" +lang_fg = "#444c5e" + +[os] +disabled = false +style = "bg:os_bg fg:os_fg" + +[os.symbols] +Windows = "󰍲" +Ubuntu = "󰕈" +SUSE = "" +Raspbian = "󰐿" +Mint = " 󰣭 " +Macos = "󰀵" +Manjaro = "" +Linux = "󰌽" +Gentoo = "󰣨" +Fedora = "󰣛" +Alpine = "" +Amazon = "" +Android = "" +Arch = "󰣇" +Artix = "󰣇" +CentOS = "" +Debian = "󰣚" +Redhat = "󱄛" +RedHatEnterprise = "󱄛" + +[username] +show_always = true +style_user = "bg:os_bg fg:os_fg" +style_root = "bg:os_bg fg:os_fg" +format = "[ $user ]($style)" + +[directory] +style = "fg:dir_fg bg:dir_bg" +format = "[ $path ]($style)" +truncation_length = 3 +truncation_symbol = "…/" + +[directory.substitutions] +"Documents" = "󰈙 " +"Downloads" = " " +"Music" = " " +"Pictures" = " " +"src" = " " + +[git_branch] +symbol = "" +style = "bg:git_bg" +format = '[[ $symbol $branch ](fg:git_fg bg:git_bg)]($style)' + +[git_status] +style = "bg:git_bg" +format = '[[($all_status$ahead_behind )](fg:git_fg bg:git_bg)]($style)' + +[nodejs] +symbol = "" +style = "bg:lang_bg" +format = '[[ $symbol( $version) ](fg:lang_fg bg:lang_bg)]($style)' + +[c] +symbol = " " +style = "bg:lang_bg" +format = '[[ $symbol( $version) ](fg:lang_fg bg:lang_bg)]($style)' + +[rust] +symbol = "" +style = "bg:lang_bg" +format = '[[ $symbol( $version) ](fg:lang_fg bg:lang_bg)]($style)' + +[golang] +symbol = "" +style = "bg:lang_bg" +format = '[[ $symbol( $version) ](fg:lang_fg bg:lang_bg)]($style)' + +[php] +symbol = "" +style = "bg:lang_bg" +format = '[[ $symbol( $version) ](fg:lang_fg bg:lang_bg)]($style)' + +[java] +symbol = " " +style = "bg:lang_bg" +format = '[[ $symbol( $version) ](fg:lang_fg bg:lang_bg)]($style)' + +[kotlin] +symbol = "" +style = "bg:lang_bg" +format = '[[ $symbol( $version) ](fg:lang_fg bg:lang_bg)]($style)' + +[haskell] +symbol = "" +style = "bg:lang_bg" +format = '[[ $symbol( $version) ](fg:lang_fg bg:lang_bg)]($style)' + +[python] +symbol = "" +style = "bg:lang_bg" +format = '[[ $symbol( $version) ](fg:lang_fg bg:lang_bg)]($style)' + +[character] +disabled = false +success_symbol = '[](bold fg:#a3be8c)' +error_symbol = '[](bold fg:#bf616a)' +vimcmd_symbol = '[](bold fg:green)' +vimcmd_replace_one_symbol = '[](bold fg:purple)' +vimcmd_replace_symbol = '[](bold fg:purple)' +vimcmd_visual_symbol = '[](bold fg:yellow)' + diff --git a/extra/terafox/starship.toml b/extra/terafox/starship.toml new file mode 100644 index 00000000..ef3a3f69 --- /dev/null +++ b/extra/terafox/starship.toml @@ -0,0 +1,146 @@ +# [metadata] +# name = "terafox" +# author = "wjohnsto" +# origin_url = "https://github.com/EdenEast/nightfox.nvim" + +"$schema" = "https://starship.rs/config-schema.json" + +format = """ +[░▒▓](os_bg)\ +$os\ +$username\ +[](bg:dir_bg fg:os_bg)\ +$directory\ +[](fg:dir_bg bg:git_bg)\ +$git_branch\ +$git_status\ +[](fg:git_bg bg:lang_bg)\ +$nodejs\ +$rust\ +$golang\ +[](fg:lang_bg bg:background)\ +\n$character""" + +palette = "terafox" + +[palettes.terafox] +red = "#e85c51" +green = "#7aa4a1" +purple = "#ad5c7c" +yellow = "#fda47f" +os_bg = "#587b7b" +os_fg = "#0f1c1e" +dir_bg = "#7aa4a1" +dir_fg = "#152528" +git_bg = "#fda47f" +git_fg = "#1d3337" +lang_bg = "#5a93aa" +lang_fg = "#254147" + +[os] +disabled = false +style = "bg:os_bg fg:os_fg" + +[os.symbols] +Windows = "󰍲" +Ubuntu = "󰕈" +SUSE = "" +Raspbian = "󰐿" +Mint = " 󰣭 " +Macos = "󰀵" +Manjaro = "" +Linux = "󰌽" +Gentoo = "󰣨" +Fedora = "󰣛" +Alpine = "" +Amazon = "" +Android = "" +Arch = "󰣇" +Artix = "󰣇" +CentOS = "" +Debian = "󰣚" +Redhat = "󱄛" +RedHatEnterprise = "󱄛" + +[username] +show_always = true +style_user = "bg:os_bg fg:os_fg" +style_root = "bg:os_bg fg:os_fg" +format = "[ $user ]($style)" + +[directory] +style = "fg:dir_fg bg:dir_bg" +format = "[ $path ]($style)" +truncation_length = 3 +truncation_symbol = "…/" + +[directory.substitutions] +"Documents" = "󰈙 " +"Downloads" = " " +"Music" = " " +"Pictures" = " " +"src" = " " + +[git_branch] +symbol = "" +style = "bg:git_bg" +format = '[[ $symbol $branch ](fg:git_fg bg:git_bg)]($style)' + +[git_status] +style = "bg:git_bg" +format = '[[($all_status$ahead_behind )](fg:git_fg bg:git_bg)]($style)' + +[nodejs] +symbol = "" +style = "bg:lang_bg" +format = '[[ $symbol( $version) ](fg:lang_fg bg:lang_bg)]($style)' + +[c] +symbol = " " +style = "bg:lang_bg" +format = '[[ $symbol( $version) ](fg:lang_fg bg:lang_bg)]($style)' + +[rust] +symbol = "" +style = "bg:lang_bg" +format = '[[ $symbol( $version) ](fg:lang_fg bg:lang_bg)]($style)' + +[golang] +symbol = "" +style = "bg:lang_bg" +format = '[[ $symbol( $version) ](fg:lang_fg bg:lang_bg)]($style)' + +[php] +symbol = "" +style = "bg:lang_bg" +format = '[[ $symbol( $version) ](fg:lang_fg bg:lang_bg)]($style)' + +[java] +symbol = " " +style = "bg:lang_bg" +format = '[[ $symbol( $version) ](fg:lang_fg bg:lang_bg)]($style)' + +[kotlin] +symbol = "" +style = "bg:lang_bg" +format = '[[ $symbol( $version) ](fg:lang_fg bg:lang_bg)]($style)' + +[haskell] +symbol = "" +style = "bg:lang_bg" +format = '[[ $symbol( $version) ](fg:lang_fg bg:lang_bg)]($style)' + +[python] +symbol = "" +style = "bg:lang_bg" +format = '[[ $symbol( $version) ](fg:lang_fg bg:lang_bg)]($style)' + +[character] +disabled = false +success_symbol = '[](bold fg:#7aa4a1)' +error_symbol = '[](bold fg:#e85c51)' +vimcmd_symbol = '[](bold fg:green)' +vimcmd_replace_one_symbol = '[](bold fg:purple)' +vimcmd_replace_symbol = '[](bold fg:purple)' +vimcmd_visual_symbol = '[](bold fg:yellow)' + diff --git a/lua/nightfox/extra/starship.lua b/lua/nightfox/extra/starship.lua new file mode 100644 index 00000000..5156dc4a --- /dev/null +++ b/lua/nightfox/extra/starship.lua @@ -0,0 +1,158 @@ +local template = require("nightfox.util.template") + +local M = {} + +function M.generate(spec, _) + local content = [[ +# [metadata] +# name = "${palette.meta.name}" +# author = "wjohnsto" +# origin_url = "https://github.com/EdenEast/nightfox.nvim" + +"$schema" = "https://starship.rs/config-schema.json" + +format = """ +[░▒▓](os_bg)\ +$os\ +$username\ +[](bg:dir_bg fg:os_bg)\ +$directory\ +[](fg:dir_bg bg:git_bg)\ +$git_branch\ +$git_status\ +[](fg:git_bg bg:lang_bg)\ +$nodejs\ +$rust\ +$golang\ +[](fg:lang_bg bg:background)\ +\n$character""" + +palette = "${palette.meta.name}" + +[palettes.${palette.meta.name}] +red = "${palette.red}" +green = "${palette.green}" +purple = "${palette.magenta}" +yellow = "${palette.yellow}" +os_bg = "${fg3}" +os_fg = "${bg0}" +dir_bg = "${palette.green}" +dir_fg = "${bg1}" +git_bg = "${palette.yellow}" +git_fg = "${bg2}" +lang_bg = "${palette.blue}" +lang_fg = "${bg3}" + +[os] +disabled = false +style = "bg:os_bg fg:os_fg" + +[os.symbols] +Windows = "󰍲" +Ubuntu = "󰕈" +SUSE = "" +Raspbian = "󰐿" +Mint = " 󰣭 " +Macos = "󰀵" +Manjaro = "" +Linux = "󰌽" +Gentoo = "󰣨" +Fedora = "󰣛" +Alpine = "" +Amazon = "" +Android = "" +Arch = "󰣇" +Artix = "󰣇" +CentOS = "" +Debian = "󰣚" +Redhat = "󱄛" +RedHatEnterprise = "󱄛" + +[username] +show_always = true +style_user = "bg:os_bg fg:os_fg" +style_root = "bg:os_bg fg:os_fg" +format = "[ $user ]($style)" + +[directory] +style = "fg:dir_fg bg:dir_bg" +format = "[ $path ]($style)" +truncation_length = 3 +truncation_symbol = "…/" + +[directory.substitutions] +"Documents" = "󰈙 " +"Downloads" = " " +"Music" = " " +"Pictures" = " " +"src" = " " + +[git_branch] +symbol = "" +style = "bg:git_bg" +format = '[[ $symbol $branch ](fg:git_fg bg:git_bg)]($style)' + +[git_status] +style = "bg:git_bg" +format = '[[($all_status$ahead_behind )](fg:git_fg bg:git_bg)]($style)' + +[nodejs] +symbol = "" +style = "bg:lang_bg" +format = '[[ $symbol( $version) ](fg:lang_fg bg:lang_bg)]($style)' + +[c] +symbol = " " +style = "bg:lang_bg" +format = '[[ $symbol( $version) ](fg:lang_fg bg:lang_bg)]($style)' + +[rust] +symbol = "" +style = "bg:lang_bg" +format = '[[ $symbol( $version) ](fg:lang_fg bg:lang_bg)]($style)' + +[golang] +symbol = "" +style = "bg:lang_bg" +format = '[[ $symbol( $version) ](fg:lang_fg bg:lang_bg)]($style)' + +[php] +symbol = "" +style = "bg:lang_bg" +format = '[[ $symbol( $version) ](fg:lang_fg bg:lang_bg)]($style)' + +[java] +symbol = " " +style = "bg:lang_bg" +format = '[[ $symbol( $version) ](fg:lang_fg bg:lang_bg)]($style)' + +[kotlin] +symbol = "" +style = "bg:lang_bg" +format = '[[ $symbol( $version) ](fg:lang_fg bg:lang_bg)]($style)' + +[haskell] +symbol = "" +style = "bg:lang_bg" +format = '[[ $symbol( $version) ](fg:lang_fg bg:lang_bg)]($style)' + +[python] +symbol = "" +style = "bg:lang_bg" +format = '[[ $symbol( $version) ](fg:lang_fg bg:lang_bg)]($style)' + +[character] +disabled = false +success_symbol = '[](bold fg:${diag.ok})' +error_symbol = '[](bold fg:${diag.error})' +vimcmd_symbol = '[](bold fg:green)' +vimcmd_replace_one_symbol = '[](bold fg:purple)' +vimcmd_replace_symbol = '[](bold fg:purple)' +vimcmd_visual_symbol = '[](bold fg:yellow)' + +]] + + return template.parse_template_str(content, spec) +end + +return M diff --git a/misc/extra.lua b/misc/extra.lua index c6dce37e..d86c54a2 100644 --- a/misc/extra.lua +++ b/misc/extra.lua @@ -26,6 +26,7 @@ local extras = { kitty = "conf", konsole = "colorscheme", nushell = { ext = "nu", use_spec_name = true }, + starship = "toml", tmux = { ext = "tmux", use_spec_name = true }, wezterm = "toml", windows_terminal = "json", diff --git a/readme.md b/readme.md index 2641fcb3..84ca0cae 100644 --- a/readme.md +++ b/readme.md @@ -618,6 +618,7 @@ There are [extra](./extra) configuration files for the following: - [iterm](https://iterm2.com/index.html) - [kitty](https://sw.kovidgoyal.net/kitty/overview/#configuring-kitty) - [konsole](https://konsole.kde.org/) +- [starship](https://starship.rs/) - [tmux](https://github.com/tmux/tmux) - [warp](https://www.warp.dev/) - [wezterm](https://wezfurlong.org/wezterm/config/appearance.html#defining-a-color-scheme-in-a-separate-file)