willothy / wezterm.nvim

Utilities for interacting with Wezterm from within Neovim
189 stars 10 forks source link

[feature request] Add a new option to set the PATH for the wezterm executable binary #21

Open mimikun opened 3 months ago

mimikun commented 3 months ago

For example:

{
    'willothy/wezterm.nvim',
    opts = {
        create_commands = false
        ---@type string | nil
        wezterm_path = "wezterm_binary_path_or_name" -- add new option
    }
}

my context:

I'm using WSL2 with Windows. I sometimes use WSLg to check the operation on Linux. For that reason, I also put the wezterm binary in WSL. Also, I'm using a low spec machine and including all the Windows paths significantly reduces performance. So I set wsl.conf like this to avoid including all paths:

wsl.conf

[interop]
appendWindowsPath = false

ref: https://learn.microsoft.com/en-us/windows/wsl/wsl-config#interop-settings

And the wezterm installed in Windows created a symbolic link with the name winwezterm.