From b5a3dc2e4ec5e1a8c8aebbe516ec7a4229599160 Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Fri, 21 Apr 2023 15:12:45 +0100 Subject: [PATCH] feat(shell): add neovim specific helpers --- zsh/neovim.zsh | 11 +++++++++++ zshrc | 1 + 2 files changed, 12 insertions(+) create mode 100644 zsh/neovim.zsh diff --git a/zsh/neovim.zsh b/zsh/neovim.zsh new file mode 100644 index 0000000..6cb55db --- /dev/null +++ b/zsh/neovim.zsh @@ -0,0 +1,11 @@ +# +# NeoVim setup. +# + +avim() { + NVIM_PROFILE="astro" nvim "$@" +} + +cvim() { + NVIM_PROFILE="nvchad" nvim "$@" +} diff --git a/zshrc b/zshrc index 5c76507..3b5a540 100644 --- a/zshrc +++ b/zshrc @@ -130,6 +130,7 @@ source "$DOTZSH/copilot.zsh" source "$DOTZSH/emacs.zsh" source "$DOTZSH/fzf.zsh" source "$DOTZSH/less.zsh" +source "$DOTZSH/neovim.zsh" source "$DOTZSH/nix.zsh" source "$DOTZSH/tmux.zsh"