feat: Added poimandres
b3f98361
7 file(s) · +223 −27
| 4 | 4 | padding = 0 |
|
| 5 | 5 | hide_ascii = true |
|
| 6 | 6 | separator = " " |
|
| 7 | - | key_color = "Yellow" |
|
| 8 | - | separator_color = "Yellow" |
|
| 7 | + | key_color = "Blue" |
|
| 8 | + | separator_color = "Blue" |
|
| 9 | 9 | ||
| 10 | 10 | [palette] |
|
| 11 | 11 | type = "Light" |
| 110 | 110 | # To load from a custom file you can use: |
|
| 111 | 111 | # source ~/.config/nushell/env.nu |
|
| 112 | 112 | ||
| 113 | - | source ~/.config/nushell/darkmatter.nu |
|
| 113 | + | # source ~/.config/nushell/darkmatter.nu |
|
| 114 | + | source ~/.config/nushell/poimandres.nu |
|
| 114 | 115 | # source ~/.config/nushell/zoxide.nu |
|
| 115 | 116 | source ~/.config/nushell/git-completions.nu |
|
| 116 | 117 | source ~/.cargo/env.nu |
| 1 | + | # Retrieve the theme settings |
|
| 2 | + | export def main [] { |
|
| 3 | + | return { |
|
| 4 | + | binary: '#89DDFF' |
|
| 5 | + | block: '#506477' |
|
| 6 | + | cell-path: '#E4F0FB' |
|
| 7 | + | closure: '#ADD7FF' |
|
| 8 | + | custom: '#E4F0FB' |
|
| 9 | + | duration: '#FFFAC2' |
|
| 10 | + | float: '#5DE4C7' |
|
| 11 | + | glob: '#E4F0FB' |
|
| 12 | + | int: '#89DDFF' |
|
| 13 | + | list: '#ADD7FF' |
|
| 14 | + | nothing: '#5DE4C7' |
|
| 15 | + | range: '#FFFAC2' |
|
| 16 | + | record: '#ADD7FF' |
|
| 17 | + | string: '#FCC5E9' |
|
| 18 | + | ||
| 19 | + | bool: {|| if $in { '#ADD7FF' } else { '#FFFAC2' } } |
|
| 20 | + | ||
| 21 | + | date: {|| (date now) - $in | |
|
| 22 | + | if $in < 1hr { |
|
| 23 | + | { fg: '#5DE4C7' attr: 'b' } |
|
| 24 | + | } else if $in < 6hr { |
|
| 25 | + | '#5DE4C7' |
|
| 26 | + | } else if $in < 1day { |
|
| 27 | + | '#FFFAC2' |
|
| 28 | + | } else if $in < 3day { |
|
| 29 | + | '#FCC5E9' |
|
| 30 | + | } else if $in < 1wk { |
|
| 31 | + | { fg: '#FCC5E9' attr: 'b' } |
|
| 32 | + | } else if $in < 6wk { |
|
| 33 | + | '#ADD7FF' |
|
| 34 | + | } else if $in < 52wk { |
|
| 35 | + | '#506477' |
|
| 36 | + | } else { 'dark_gray' } |
|
| 37 | + | } |
|
| 38 | + | ||
| 39 | + | filesize: {|e| |
|
| 40 | + | if $e == 0b { |
|
| 41 | + | '#E4F0FB' |
|
| 42 | + | } else if $e < 1mb { |
|
| 43 | + | '#ADD7FF' |
|
| 44 | + | } else {{ fg: '#506477' }} |
|
| 45 | + | } |
|
| 46 | + | ||
| 47 | + | shape_and: { fg: '#89DDFF' attr: 'b' } |
|
| 48 | + | shape_binary: { fg: '#89DDFF' attr: 'b' } |
|
| 49 | + | shape_block: { fg: '#506477' attr: 'b' } |
|
| 50 | + | shape_bool: '#ADD7FF' |
|
| 51 | + | shape_closure: { fg: '#ADD7FF' attr: 'b' } |
|
| 52 | + | shape_custom: '#FCC5E9' |
|
| 53 | + | shape_datetime: { fg: '#ADD7FF' attr: 'b' } |
|
| 54 | + | shape_directory: '#ADD7FF' |
|
| 55 | + | shape_external: '#ADD7FF' |
|
| 56 | + | shape_external_resolved: '#ADD7FF' |
|
| 57 | + | shape_externalarg: { fg: '#FCC5E9' attr: 'b' } |
|
| 58 | + | shape_filepath: '#ADD7FF' |
|
| 59 | + | shape_flag: { fg: '#506477' attr: 'b' } |
|
| 60 | + | shape_float: { fg: '#5DE4C7' attr: 'b' } |
|
| 61 | + | shape_garbage: { fg: '#FFFFFF' bg: '#D0679D' attr: 'b' } |
|
| 62 | + | shape_glob_interpolation: { fg: '#ADD7FF' attr: 'b' } |
|
| 63 | + | shape_globpattern: { fg: '#ADD7FF' attr: 'b' } |
|
| 64 | + | shape_int: { fg: '#89DDFF' attr: 'b' } |
|
| 65 | + | shape_internalcall: { fg: '#ADD7FF' attr: 'b' } |
|
| 66 | + | shape_keyword: { fg: '#89DDFF' attr: 'b' } |
|
| 67 | + | shape_list: { fg: '#ADD7FF' attr: 'b' } |
|
| 68 | + | shape_literal: '#506477' |
|
| 69 | + | shape_match_pattern: '#FCC5E9' |
|
| 70 | + | shape_matching_brackets: { attr: 'u' } |
|
| 71 | + | shape_nothing: '#5DE4C7' |
|
| 72 | + | shape_operator: '#FFFAC2' |
|
| 73 | + | shape_or: { fg: '#89DDFF' attr: 'b' } |
|
| 74 | + | shape_pipe: { fg: '#89DDFF' attr: 'b' } |
|
| 75 | + | shape_range: { fg: '#FFFAC2' attr: 'b' } |
|
| 76 | + | shape_raw_string: { fg: '#E4F0FB' attr: 'b' } |
|
| 77 | + | shape_record: { fg: '#ADD7FF' attr: 'b' } |
|
| 78 | + | shape_redirection: { fg: '#89DDFF' attr: 'b' } |
|
| 79 | + | shape_signature: { fg: '#FCC5E9' attr: 'b' } |
|
| 80 | + | shape_string: '#FCC5E9' |
|
| 81 | + | shape_string_interpolation: { fg: '#ADD7FF' attr: 'b' } |
|
| 82 | + | shape_table: { fg: '#506477' attr: 'b' } |
|
| 83 | + | shape_vardecl: { fg: '#506477' attr: 'u' } |
|
| 84 | + | shape_variable: '#89DDFF' |
|
| 85 | + | ||
| 86 | + | foreground: '#E4F0FB' |
|
| 87 | + | background: '#1B1E28' |
|
| 88 | + | cursor: '#A6ACCD' |
|
| 89 | + | ||
| 90 | + | empty: '#506477' |
|
| 91 | + | header: { fg: '#FCC5E9' attr: 'b' } |
|
| 92 | + | hints: '#171922' |
|
| 93 | + | leading_trailing_space_bg: { attr: 'n' } |
|
| 94 | + | row_index: { fg: '#FCC5E9' attr: 'b' } |
|
| 95 | + | search_result: { fg: '#5DE4C7' bg: '#E4F0FB' } |
|
| 96 | + | separator: '#E4F0FB' |
|
| 97 | + | } |
|
| 98 | + | } |
|
| 99 | + | ||
| 100 | + | # Update the Nushell configuration |
|
| 101 | + | export def --env "set color_config" [] { |
|
| 102 | + | $env.config.color_config = (main) |
|
| 103 | + | } |
|
| 104 | + | ||
| 105 | + | # Update terminal colors |
|
| 106 | + | export def "update terminal" [] { |
|
| 107 | + | let theme = (main) |
|
| 108 | + | ||
| 109 | + | # Set terminal colors |
|
| 110 | + | let osc_screen_foreground_color = '10;' |
|
| 111 | + | let osc_screen_background_color = '11;' |
|
| 112 | + | let osc_cursor_color = '12;' |
|
| 113 | + | ||
| 114 | + | $" |
|
| 115 | + | (ansi -o $osc_screen_foreground_color)($theme.foreground)(char bel) |
|
| 116 | + | (ansi -o $osc_screen_background_color)($theme.background)(char bel) |
|
| 117 | + | (ansi -o $osc_cursor_color)($theme.cursor)(char bel) |
|
| 118 | + | " |
|
| 119 | + | # Line breaks above are just for source readability |
|
| 120 | + | # but create extra whitespace when activating. Collapse |
|
| 121 | + | # to one line and print with no-newline |
|
| 122 | + | | str replace --all "\n" '' |
|
| 123 | + | | print -n $"($in)\r" |
|
| 124 | + | } |
|
| 125 | + | ||
| 126 | + | export module activate { |
|
| 127 | + | export-env { |
|
| 128 | + | set color_config |
|
| 129 | + | update terminal |
|
| 130 | + | } |
|
| 131 | + | } |
|
| 132 | + | ||
| 133 | + | # Activate the theme when sourced |
|
| 134 | + | use activate |
| 1 | 1 | { |
|
| 2 | 2 | "Comment.nvim": { "branch": "master", "commit": "e30b7f2008e52442154b66f7c519bfd2f1e32acb" }, |
|
| 3 | - | "LuaSnip": { "branch": "master", "commit": "eda5be8f0ce9816278671f0b578cdbb8b762c701" }, |
|
| 4 | - | "blink.cmp": { "branch": "main", "commit": "9bcb14b43852a6f2bfd5ac9ef29cb5cf09b1b39b" }, |
|
| 5 | - | "conform.nvim": { "branch": "master", "commit": "8132ec733eed3bf415b97b76797ca41b59f51d7d" }, |
|
| 6 | - | "darkmatter-nvim": { "branch": "main", "commit": "c79d9218d3477b038060c0d592c4b22be22161d4" }, |
|
| 3 | + | "LuaSnip": { "branch": "master", "commit": "831a130291eb6dae0dabd2748d0a99401a2eebc4" }, |
|
| 4 | + | "blink.cmp": { "branch": "main", "commit": "586ee87534f5bf65f1c8dea2d1da2a57e8cddd36" }, |
|
| 5 | + | "conform.nvim": { "branch": "master", "commit": "973f3cb73887d510321653044791d7937c7ec0fa" }, |
|
| 7 | 6 | "friendly-snippets": { "branch": "main", "commit": "572f5660cf05f8cd8834e096d7b4c921ba18e175" }, |
|
| 8 | - | "gitsigns.nvim": { "branch": "main", "commit": "1b0350ab707713b2bc6c236151f1a324175347b1" }, |
|
| 7 | + | "gitsigns.nvim": { "branch": "main", "commit": "93f882f7041a2e779addbd34943812ca66edef5a" }, |
|
| 9 | 8 | "lazy.nvim": { "branch": "main", "commit": "6c3bda4aca61a13a9c63f1c1d1b16b9d3be90d7a" }, |
|
| 10 | 9 | "lazydev.nvim": { "branch": "main", "commit": "2367a6c0a01eb9edb0464731cc0fb61ed9ab9d2c" }, |
|
| 11 | 10 | "lualine.nvim": { "branch": "master", "commit": "a94fc68960665e54408fe37dcf573193c4ce82c9" }, |
|
| 12 | - | "neo-tree.nvim": { "branch": "v3.x", "commit": "f481de16a0eb59c985abac8985e3f2e2f75b4875" }, |
|
| 11 | + | "neo-tree.nvim": { "branch": "v3.x", "commit": "cea666ef965884414b1b71f6b39a537f9238bdb2" }, |
|
| 13 | 12 | "nui.nvim": { "branch": "main", "commit": "de740991c12411b663994b2860f1a4fd0937c130" }, |
|
| 14 | 13 | "nvim-surround": { "branch": "main", "commit": "8dd9150ca7eae5683660ea20cec86edcd5ca4046" }, |
|
| 15 | 14 | "nvim-treesitter": { "branch": "master", "commit": "42fc28ba918343ebfd5565147a42a26580579482" }, |
|
| 16 | 15 | "nvim-treesitter-textobjects": { "branch": "master", "commit": "89ebe73cd2836db80a22d9748999ace0241917a5" }, |
|
| 17 | - | "nvim-web-devicons": { "branch": "master", "commit": "19d6211c78169e78bab372b585b6fb17ad974e82" }, |
|
| 16 | + | "nvim-web-devicons": { "branch": "master", "commit": "0422a19d9aa3aad2c7e5cca167e5407b13407a9d" }, |
|
| 18 | 17 | "plenary.nvim": { "branch": "master", "commit": "857c5ac632080dba10aae49dba902ce3abf91b35" }, |
|
| 18 | + | "poimandres.nvim": { "branch": "main", "commit": "a488957d803943a4201ac3b774913fcafa9e6b3a" }, |
|
| 19 | 19 | "telescope.nvim": { "branch": "master", "commit": "d90956833d7c27e73c621a61f20b29fdb7122709" }, |
|
| 20 | 20 | "vim-sleuth": { "branch": "master", "commit": "be69bff86754b1aa5adcbb527d7fcd1635a84080" }, |
|
| 21 | - | "vim-tmux-navigator": { "branch": "master", "commit": "412c474e97468e7934b9c217064025ea7a69e05e" } |
|
| 21 | + | "vim-tmux-navigator": { "branch": "master", "commit": "c45243dc1f32ac6bcf6068e5300f3b2b237e576a" } |
|
| 22 | 22 | } |
| 1 | 1 | return { |
|
| 2 | - | "stevedylandev/darkmatter-nvim", |
|
| 2 | + | 'olivercederborg/poimandres.nvim', |
|
| 3 | 3 | lazy = false, |
|
| 4 | 4 | priority = 1000, |
|
| 5 | 5 | config = function() |
|
| 6 | - | vim.cmd.colorscheme "darkmatter" |
|
| 6 | + | require('poimandres').setup { |
|
| 7 | + | -- leave this setup function empty for default config |
|
| 8 | + | -- or refer to the configuration section |
|
| 9 | + | -- for configuration options |
|
| 10 | + | } |
|
| 7 | 11 | end, |
|
| 12 | + | ||
| 13 | + | -- optionally set the colorscheme within lazy config |
|
| 14 | + | init = function() |
|
| 15 | + | vim.cmd("colorscheme poimandres") |
|
| 16 | + | end |
|
| 8 | 17 | } |
| 6 | 6 | config = wezterm.config_builder() |
|
| 7 | 7 | end |
|
| 8 | 8 | ||
| 9 | - | config.color_scheme = 'Darkmatter' |
|
| 10 | 9 | config.color_schemes = { |
|
| 11 | - | ["Darkmatter"] = { |
|
| 12 | - | foreground = "#ffffff", |
|
| 13 | - | background = "#121113", |
|
| 14 | - | cursor_fg = "#121113", |
|
| 15 | - | cursor_bg = "#ffffff", |
|
| 16 | - | cursor_border = "#ffffff", |
|
| 17 | - | selection_fg = "#000000", |
|
| 18 | - | selection_bg = "#222222", |
|
| 10 | + | ["Poimandres"] = { |
|
| 11 | + | foreground = "#E4F0FB", |
|
| 12 | + | background = "#1B1E28", |
|
| 13 | + | cursor_fg = "#1B1E28", |
|
| 14 | + | cursor_bg = "#A6ACCD", |
|
| 15 | + | cursor_border = "#A6ACCD", |
|
| 16 | + | selection_fg = "#E4F0FB", |
|
| 17 | + | selection_bg = "#506477", |
|
| 19 | 18 | ansi = { |
|
| 20 | - | "#121113", "#5f8787", "#fbcb97", "#e78a53", |
|
| 21 | - | "#888888", "#999999", "#aaaaaa", "#c1c1c1" |
|
| 19 | + | "#171922", "#D0679D", "#5DE4C7", "#FFFAC2", |
|
| 20 | + | "#89DDFF", "#FCC5E9", "#89DDFF", "#FFFFFF" |
|
| 22 | 21 | }, |
|
| 23 | 22 | brights = { |
|
| 24 | - | "#333333", "#5f8787", "#fbcb97", "#e78a53", |
|
| 25 | - | "#888888", "#999999", "#aaaaaa", "#c1c1c1" |
|
| 23 | + | "#506477", "#D0679D", "#5DE4C7", "#FFFAC2", |
|
| 24 | + | "#ADD7FF", "#FCC5E9", "#ADD7FF", "#FFFFFF" |
|
| 25 | + | }, |
|
| 26 | + | scrollbar_thumb = "#303340", |
|
| 27 | + | split = "#171922", |
|
| 28 | + | visual_bell = "#506477", |
|
| 29 | + | compose_cursor = "#FCC5E9", |
|
| 30 | + | indexed = { |
|
| 31 | + | [16] = "#5DE4C7", |
|
| 32 | + | [17] = "#D0679D" |
|
| 33 | + | }, |
|
| 34 | + | tab_bar = { |
|
| 35 | + | background = "#171922", |
|
| 36 | + | active_tab = { |
|
| 37 | + | bg_color = "#1B1E28", |
|
| 38 | + | fg_color = "#E4F0FB", |
|
| 39 | + | intensity = "Normal", |
|
| 40 | + | italic = false, |
|
| 41 | + | strikethrough = false, |
|
| 42 | + | underline = "None" |
|
| 43 | + | }, |
|
| 44 | + | inactive_tab = { |
|
| 45 | + | bg_color = "#171922", |
|
| 46 | + | fg_color = "#506477", |
|
| 47 | + | intensity = "Normal", |
|
| 48 | + | italic = false, |
|
| 49 | + | strikethrough = false, |
|
| 50 | + | underline = "None" |
|
| 51 | + | }, |
|
| 52 | + | inactive_tab_hover = { |
|
| 53 | + | bg_color = "#171922", |
|
| 54 | + | fg_color = "#767C9D", |
|
| 55 | + | intensity = "Normal", |
|
| 56 | + | italic = false, |
|
| 57 | + | strikethrough = false, |
|
| 58 | + | underline = "None" |
|
| 59 | + | }, |
|
| 60 | + | new_tab = { |
|
| 61 | + | bg_color = "#171922", |
|
| 62 | + | fg_color = "#506477", |
|
| 63 | + | intensity = "Normal", |
|
| 64 | + | italic = false, |
|
| 65 | + | strikethrough = false, |
|
| 66 | + | underline = "None" |
|
| 67 | + | }, |
|
| 68 | + | new_tab_hover = { |
|
| 69 | + | bg_color = "#171922", |
|
| 70 | + | fg_color = "#767C9D", |
|
| 71 | + | intensity = "Normal", |
|
| 72 | + | italic = true, |
|
| 73 | + | strikethrough = false, |
|
| 74 | + | underline = "None" |
|
| 75 | + | } |
|
| 26 | 76 | } |
|
| 27 | 77 | } |
|
| 28 | 78 | } |
|
| 79 | + | ||
| 80 | + | config.color_scheme = 'Poimandres' |
|
| 29 | 81 | ||
| 30 | 82 | config.font = wezterm.font('BerkeleyMono Nerd Font') |
|
| 31 | 83 | config.font_size = 14 |
| 93 | 93 | } |
|
| 94 | 94 | }, |
|
| 95 | 95 | ||
| 96 | - | "theme": "Darkmatter", |
|
| 96 | + | "theme": "poimandres", |
|
| 97 | 97 | "buffer_font_size": 13.0, |
|
| 98 | 98 | "buffer_font_family": "Berkeley Mono", |
|
| 99 | 99 | "vim_mode": true, |