Skip to content

Commit

Permalink
Check for $MYVIMRC when setting termvisage render style.
Browse files Browse the repository at this point in the history
This variable is set within the embedded vim terminal, whereas
`$VIMRUNTIME` is not, at least in current vim.
  • Loading branch information
xwmx committed Oct 6, 2024
1 parent 3f34335 commit d4bba0b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nb
Original file line number Diff line number Diff line change
Expand Up @@ -18823,7 +18823,8 @@ Can't show archives. Export archive and expand to edit.\\n"
then
local _render_style="auto"

if [[ -n "${VIMRUNTIME:-}" ]]
if [[ -n "${VIMRUNTIME:-}" ]] ||
[[ -n "${MYVIMRC:-}" ]]
then
_render_style="block"
elif [[ "${TERM_PROGRAM:-}" == "iTerm.app" ]]
Expand Down

0 comments on commit d4bba0b

Please sign in to comment.