diff --git a/nvim/lazynvim/lua/plugins/typst-preview.lua b/nvim/lazynvim/lua/plugins/typst-preview.lua index 74ffe74..4efa683 100644 --- a/nvim/lazynvim/lua/plugins/typst-preview.lua +++ b/nvim/lazynvim/lua/plugins/typst-preview.lua @@ -2,7 +2,9 @@ return { 'chomosuke/typst-preview.nvim', ft = 'typst', -- or ft = 'typst' version = '1.*', - opts = {}, -- lazy.nvim will implicitly calls `setup {}` + opts = { + debug = true, + }, -- lazy.nvim will implicitly calls `setup {}` keys = { { "tp", diff --git a/yazi/theme.toml b/yazi/theme.toml index 47503bf..36f54d3 100644 --- a/yazi/theme.toml +++ b/yazi/theme.toml @@ -2,7 +2,7 @@ # Catpuccin - Mocha # : Manager {{{ -[manager] +[mgr] cwd = { fg = "#94e2d5" } # Hovered diff --git a/yazi/theme.toml-1748966637471042 b/yazi/theme.toml-1748966637471042 new file mode 100644 index 0000000..47503bf --- /dev/null +++ b/yazi/theme.toml-1748966637471042 @@ -0,0 +1,193 @@ +# https://github.com/yazi-rs/flavors.git +# Catpuccin - Mocha +# : Manager {{{ + +[manager] +cwd = { fg = "#94e2d5" } + +# Hovered +hovered = { reversed = true } +preview_hovered = { underline = true } + +# Find +find_keyword = { fg = "#f9e2af", bold = true, italic = true, underline = true } +find_position = { fg = "#f5c2e7", bg = "reset", bold = true, italic = true } + +# Marker +marker_copied = { fg = "#a6e3a1", bg = "#a6e3a1" } +marker_cut = { fg = "#f38ba8", bg = "#f38ba8" } +marker_marked = { fg = "#94e2d5", bg = "#94e2d5" } +marker_selected = { fg = "#f9e2af", bg = "#f9e2af" } + +# Tab +tab_active = { reversed = true } +tab_inactive = {} +tab_width = 1 + +# Count +count_copied = { fg = "#1e1e2e", bg = "#a6e3a1" } +count_cut = { fg = "#1e1e2e", bg = "#f38ba8" } +count_selected = { fg = "#1e1e2e", bg = "#f9e2af" } + +# Border +border_symbol = "│" +border_style = { fg = "#7f849c" } + +# : }}} + + +# : Mode {{{ + +[mode] + +normal_main = { fg = "#1e1e2e", bg = "#89b4fa", bold = true } +normal_alt = { fg = "#89b4fa", bg = "#313244" } + +# Select mode +select_main = { fg = "#1e1e2e", bg = "#a6e3a1", bold = true } +select_alt = { fg = "#a6e3a1", bg = "#313244" } + +# Unset mode +unset_main = { fg = "#1e1e2e", bg = "#f2cdcd", bold = true } +unset_alt = { fg = "#f2cdcd", bg = "#313244" } + +# : }}} + + +# : Status bar {{{ + +[status] +separator_open = "" +separator_close = "" + +# Progress +progress_label = { fg = "#ffffff", bold = true } +progress_normal = { fg = "#89b4fa", bg = "#45475a" } +progress_error = { fg = "#f38ba8", bg = "#45475a" } + +# Permissions +perm_sep = { fg = "#7f849c" } +perm_type = { fg = "#89b4fa" } +perm_read = { fg = "#f9e2af" } +perm_write = { fg = "#f38ba8" } +perm_exec = { fg = "#a6e3a1" } + +# TODO: -- remove these once Yazi 0.4 gets released +separator_style = { fg = "#313244", bg = "#313244" } +mode_normal = { fg = "#1e1e2e", bg = "#89b4fa", bold = true } +mode_select = { fg = "#1e1e2e", bg = "#a6e3a1", bold = true } +mode_unset = { fg = "#1e1e2e", bg = "#f2cdcd", bold = true } +permissions_t = { fg = "#89b4fa" } +permissions_r = { fg = "#f9e2af" } +permissions_w = { fg = "#f38ba8" } +permissions_x = { fg = "#a6e3a1" } +permissions_s = { fg = "#7f849c" } +# TODO: remove these once Yazi 0.4 gets released -- + +# : }}} + + +# : Pick {{{ + +[pick] +border = { fg = "#89b4fa" } +active = { fg = "#f5c2e7", bold = true } +inactive = {} + +# TODO: -- remove these once Yazi 0.4 gets released +[select] +border = { fg = "#89b4fa" } +active = { fg = "#f5c2e7", bold = true } +inactive = {} +# TODO: remove these once Yazi 0.4 gets released -- + +# : }}} + + +# : Input {{{ + +[input] +border = { fg = "#89b4fa" } +title = {} +value = {} +selected = { reversed = true } + +# : }}} + + +# : Completion {{{ + +[completion] +border = { fg = "#89b4fa" } + +# : }}} + + +# : Tasks {{{ + +[tasks] +border = { fg = "#89b4fa" } +title = {} +hovered = { fg = "#f5c2e7", underline = true } + +# : }}} + + +# : Which {{{ + +[which] +mask = { bg = "#313244" } +cand = { fg = "#94e2d5" } +rest = { fg = "#9399b2" } +desc = { fg = "#f5c2e7" } +separator = "  " +separator_style = { fg = "#585b70" } + +# : }}} + + +# : Help {{{ + +[help] +on = { fg = "#94e2d5" } +run = { fg = "#f5c2e7" } +hovered = { reversed = true, bold = true } +footer = { fg = "#313244", bg = "#cdd6f4" } + +# : }}} + + +# : Notify {{{ + +[notify] +title_info = { fg = "#a6e3a1" } +title_warn = { fg = "#f9e2af" } +title_error = { fg = "#f38ba8" } + +# : }}} + + +# : File-specific styles {{{ + +[filetype] + +rules = [ + # Images + { mime = "image/*", fg = "#94e2d5" }, + + # Media + { mime = "{audio,video}/*", fg = "#f9e2af" }, + + # Archives + { mime = "application/*zip", fg = "#f5c2e7" }, + { mime = "application/x-{tar,bzip*,7z-compressed,xz,rar}", fg = "#f5c2e7" }, + + # Documents + { mime = "application/{pdf,doc,rtf,vnd.*}", fg = "#a6e3a1" }, + + # Fallback + { name = "*", fg = "#cdd6f4" }, + { name = "*/", fg = "#89b4fa" } +] + +# : }}} diff --git a/yazi/yazi.toml b/yazi/yazi.toml index ec830d7..0855492 100644 --- a/yazi/yazi.toml +++ b/yazi/yazi.toml @@ -1,3 +1,3 @@ -[manager] +[mgr] show_hidden = true show_symlink = true diff --git a/yazi/yazi.toml-1748966636821415 b/yazi/yazi.toml-1748966636821415 new file mode 100644 index 0000000..ec830d7 --- /dev/null +++ b/yazi/yazi.toml-1748966636821415 @@ -0,0 +1,3 @@ +[manager] +show_hidden = true +show_symlink = true diff --git a/zsh/config/.zshrc b/zsh/config/.zshrc index cf2075d..88d0132 100755 --- a/zsh/config/.zshrc +++ b/zsh/config/.zshrc @@ -249,5 +249,6 @@ function use-gpg-agent-for-ssh { export SSH_AUTH_SOCK="$SOCK" fi } - use-gpg-agent-for-ssh + +eval "$(direnv hook zsh)" diff --git a/zsh/config/functions/dp b/zsh/config/functions/dp new file mode 100755 index 0000000..14c2e99 --- /dev/null +++ b/zsh/config/functions/dp @@ -0,0 +1,12 @@ +#!/bin/zsh + +function dp() { + [ -z "$1" ] && echo "Must supply temperature" && return 1 + [ -z "$2" ] && echo "Must supply relative humidity" && return 1 + + local temperature=$1 + local humidity=$2 + + /opt/homebrew/bin/psychrometrics dew-point --dry-bulb "$temperature" --relative-humidity "$humidity" + +}