jonathanmorris180 / salesforce.nvim

A Salesforce plugin for Neovim.
MIT License
20 stars 5 forks source link

fix: add sf cli executable based on os #16

Closed golis-kamil closed 5 months ago

golis-kamil commented 5 months ago

📃 Summary

Adding vim.env.HOME and vim.env.PATH is the way but on Windows SF command is not recognized by Plenary. The solution is to provide exact command from npm, for linux based system it is just sf but for Windows this command should be sf.cmd.

This pull request adds additional variable to plugin configuration where default value is sf but when jit detects that this is Windows os this variable is set to sf.cmd. This resolves https://github.com/jonathanmorris180/salesforce.nvim/issues/13 issue.