From f1272587edb21e79fb42aefabca3dbaa9af0c516 Mon Sep 17 00:00:00 2001 From: wooshdude Date: Fri, 18 Apr 2025 12:24:22 -0700 Subject: [PATCH] update zed config --- zed/.config/zed/settings.json | 77 +++++++++++++++++++---------------- zsh/.zshrc | 9 ++++ 2 files changed, 51 insertions(+), 35 deletions(-) diff --git a/zed/.config/zed/settings.json b/zed/.config/zed/settings.json index fa68d0e..882303e 100644 --- a/zed/.config/zed/settings.json +++ b/zed/.config/zed/settings.json @@ -7,39 +7,46 @@ // custom settings, run zed: open default settings from the // command palette (cmd-shift-p / ctrl-shift-p) { - "vim_mode": true, - "scrollbar": { - "show": "never" - }, - "vim": { - "toggle_relative_line_numbers": true - }, - "features": { - "copilot": false, - "inline_completion_provider": "none" - }, - "show_completions_on_input": true, - "assistant": { - "version": "2", - "enabled": false - }, - "inlay_hints": { - "enabled": true, - "show_type_hints": true, - "show_parameter_hints": true, - "show_other_hints": true - }, - "show_inline_completions": true, - "ui_font_size": 16, - "buffer_font_size": 16, - "theme": { - "mode": "dark", - "light": "Catppuccin Latte", - "dark": "Catppuccin Mocha" - }, - "ui_font_family": "JetBrainsMono Nerd Font Mono", - "terminal": { - "font_family": "JetBrainsMono Nerd Font Mono" - }, - "hard_tabs": true + "vim_mode": true, + "scrollbar": { + "show": "never" + }, + "vim": { + "toggle_relative_line_numbers": true + }, + "features": { + "copilot": false, + "edit_prediction_provider": "none" + }, + "show_completions_on_input": true, + "assistant": { + "version": "2", + "enabled": false + }, + "inlay_hints": { + "enabled": true, + "show_type_hints": true, + "show_parameter_hints": true, + "show_other_hints": true + }, + "show_edit_predictions": true, + "ui_font_size": 16, + "buffer_font_size": 16, + "theme": { + "mode": "dark", + "light": "Catppuccin Latte", + "dark": "Catppuccin Mocha" + }, + "ui_font_family": "JetBrainsMono Nerd Font Mono", + "terminal": { + "font_family": "JetBrainsMono Nerd Font Mono" + }, + "hard_tabs": true, + "lsp": { + "omnisharp": { + "binary": { + "path": "/usr/local/bin/dotnet" + } + } + } } diff --git a/zsh/.zshrc b/zsh/.zshrc index fcf9e8e..15d7d09 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -5,3 +5,12 @@ alias pip="python3 -m pip" alias border="sh border" alias lvim="~/.local/bin/lvim" eval "$(starship init zsh)" + +function yy() { + local tmp="$(mktemp -t "yazi-cwd.XXXXXX")" + yazi "$@" --cwd-file="$tmp" + if cwd="$(cat -- "$tmp")" && [ -n "$cwd" ] && [ "$cwd" != "$PWD" ]; then + cd -- "$cwd" + fi + rm -f -- "$tmp" +}