glacambre / firenvim

Embed Neovim in Chrome, Firefox & others.
GNU General Public License v3.0
4.57k stars 144 forks source link

Capture NVIM_APPNAME on Windows during batch script installation #1622

Closed Beastwick18 closed 2 weeks ago

Beastwick18 commented 2 weeks ago

When creating the .sh script for Linux, "NVIM_APPNAME" is set as expected. This does not happen on Windows, however. I've added a new function, s:capture_windows_env_var, which adds a statement formatted like:

if NOT DEFINED some_variable (
  set "some_variable=some_value"
)

The only environment variable added to the batch script is NVIM_APPDATA

glacambre commented 2 weeks ago

Awesome, thank you for taking the time to implement this! :)