Skip to content

Commit

Permalink
Add note on WSL to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
doctorfree committed Jun 23, 2024
1 parent 37fa1bb commit bb4091c
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ to install, initialize, remove, and manage multiple Neovim configurations.
- [Motivation](#motivation)
- [Inspiration](#inspiration)
- [Notes](#notes)
- [Windows Subsystem for Linux](#windows-subsystem-for-linux)
- [Removal](#removal)
- [Known limitations and troubleshooting](#known-limitations-and-troubleshooting)
- [Appendix](#appendix)
Expand Down Expand Up @@ -975,6 +976,25 @@ Thanks everybody!
View the Lazyman Notes in the
[Lazyman Notes article on the Lazyman website](https://lazyman.dev/posts/Notes).

### Windows Subsystem for Linux

If you have installed `Lazyman` in the Windows Subsystem for Linux (WSL)
then set the `NVIM_APPNAME` environment variable on the Windows side with:

```bash
setx NVIM_APPNAME "nvim-<ConfigName>"
# For example, to use the AstroNvimV4 configuration
setx NVIM_APPNAME "nvim-AstroNvimV4"
```

Where `nvim-<ConfigName>` is the Neovim configuration directory you want to use in WSL.

Then set `WSLENV` to include `NVIM_APPNAME` with something like:

```bash
setx WSLENV NVIM_APPNAME/u
```

## Removal

The [lazyman.sh](lazyman.sh) script can be used to remove previously installed
Expand Down

0 comments on commit bb4091c

Please sign in to comment.