Skip to content

fix: support NVIM_APPNAME in /tmp socket discovery#51

Merged
Cannon07 merged 1 commit intomainfrom
fix/nvim-appname-tmp-socket-discovery
May 6, 2026
Merged

fix: support NVIM_APPNAME in /tmp socket discovery#51
Cannon07 merged 1 commit intomainfrom
fix/nvim-appname-tmp-socket-discovery

Conversation

@Cannon07
Copy link
Copy Markdown
Owner

@Cannon07 Cannon07 commented May 6, 2026

Summary

Follow-up to #49, which fixed NVIM_APPNAME socket discovery for the XDG_RUNTIME_DIR path. The same hardcoded nvim prefix existed in step 3 (/tmp/nvim.*/0 glob and PID-extraction regex), so users with a custom NVIM_APPNAME on systems that route sockets through /tmp were still silently missed.

This PR applies the same ${NVIM_APPNAME:-nvim} substitution to step 3 and hoists the _appname declaration above both steps so they share it.

@Cannon07 Cannon07 merged commit 5b09ea2 into main May 6, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant