Skip to content

Commit c480226

Browse files
Ted Leahytedleahy-upland
authored andcommitted
Merge pull request nvim-lua#480 from dam9000/pr-faq-appname
README.md: add a note about NVIM_APPNAME in the FAQ section
2 parents e607008 + 3a534b4 commit c480226

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,13 @@ Each PR, especially those which increase the line count, should have a descripti
149149
* You should back it up, then delete all files associated with it.
150150
* This includes your existing init.lua and the neovim files in `~/.local` which can be deleted with `rm -rf ~/.local/share/nvim/`
151151
* You may also want to look at the [migration guide for lazy.nvim](https://github.com/folke/lazy.nvim#-migration-guide)
152+
* Can I keep my existing configuration in parallel to kickstart?
153+
* Yes! You can use [NVIM_APPNAME](https://neovim.io/doc/user/starting.html#%24NVIM_APPNAME)`=nvim-NAME` to maintain multiple configurations. For example you can install the kickstart configuration in `~/.config/nvim-kickstart` and create a script `~/bin/nvim-kickstart`:
154+
```
155+
#!/bin/sh
156+
exec env NVIM_APPNAME=nvim-kickstart nvim "$@"
157+
```
158+
When you run Neovim with `nvim-kickstart` it will use the alternative config directory and the matching local directory: `~/.local/share/nvim-kickstart`. You can apply this approach to any Neovim distribution that you would like to try out.
152159
* What if I want to "uninstall" this configuration:
153160
* See [lazy.nvim uninstall](https://github.com/folke/lazy.nvim#-uninstalling) information
154161
* Are there any cool videos about this plugin?

0 commit comments

Comments
 (0)