feat: labeles transfer for github repositories

This commit is contained in:
2025-01-31 00:44:58 +00:00
parent 7890362285
commit 404e6a05ed
7 changed files with 191 additions and 80 deletions

28
package/nvim-alias.nix Normal file
View File

@@ -0,0 +1,28 @@
# necessary to load every time .nvimrc
# makes some magic to shading nvim but still uses nvim that shaded
{ pkgs, ... }:
pkgs.writeShellScriptBin "nvim" ''
# Source .env file
if [ -f .env ]; then
set -a
. .env
set +a
fi
# Get the directory of this script
SCRIPT_DIR=$(dirname "$(readlink -f "$0")")
# Remove the script's directory from PATH to avoid recursion
PATH=$(echo "$PATH" | tr ':' '\n' | grep -v "$SCRIPT_DIR" | paste -sd ':' -)
# Find the system's nvim
SYSTEM_NVIM=$(command -v nvim)
if [ -z "$SYSTEM_NVIM" ]; then
echo "Error: nvim not found in PATH" >&2
exit 1
fi
# Execute the system's nvim with your custom arguments
exec "$SYSTEM_NVIM" --cmd 'lua vim.o.exrc = true' "$@"
''