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.
📃 Summary
Adding
vim.env.HOME
andvim.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 justsf
but for Windows this command should besf.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 tosf.cmd
. This resolves https://github.com/jonathanmorris180/salesforce.nvim/issues/13 issue.