#!/bin/sh -e
#
# nvim-hosted - neovim needs a terminal to display itself,
# and thus can't be started directly by, for example, a keybind in i3.
# this script simply launches a terminal to contain a neovim instance.

# note: we assume kitty as a reasonable default terminal emulator.
# to override this, set $TERMINAL in your environment,
# e.g. for hyprland: $terminal = ghostty env = TERMINAL,$terminal

exec env TERM=wezterm "${TERMINAL:-${TERM_PROGAM:-wezterm}}" -e nvim "$@" >"/dev/null" 2>&1 &
