diff --git a/.zshrc b/.zshrc index 6d50721..08f4800 100644 --- a/.zshrc +++ b/.zshrc @@ -446,11 +446,15 @@ _coding_() { # ─< neovide, the best frontend for any neovim-config >─────────────────────────────────── if command_exists nvim; then if command_exists neovide; then - # if [ -n "$TMUX" ]; then - # alias nvim="command nvim" - # else + if [ -n "$TTY" ]; then + alias nvim="command nvim" + else alias nvim="neovide --fork" - # fi + fi + fi + + if [ -d "$HOME/.config/nvchad" ]; then + alias nvchad='NVIM_APPNAME="nvchad" nvim' fi fi