nnn: Switch to nvim

This commit is contained in:
Peter Cai 2024-04-08 18:55:59 -04:00
parent a03404e625
commit 3e82da7802

View file

@ -1,13 +1,13 @@
#!/usr/bin/env bash #!/usr/bin/env bash
if [ "$TERM_PROGRAM" != "WezTerm" ]; then if [ "$TERM_PROGRAM" != "WezTerm" ]; then
exec vim "$@" exec nvim "$@"
fi fi
pane_id=$(wezterm cli get-pane-direction Right) pane_id=$(wezterm cli get-pane-direction Right)
if [ -z "$pane_id" ]; then if [ -z "$pane_id" ]; then
exec wezterm cli split-pane --right --percent 70 -- vim "$@" exec wezterm cli split-pane --right --percent 70 -- nvim "$@"
else else
exec wezterm cli spawn -- vim "$@" exec wezterm cli spawn -- nvim "$@"
fi fi