From e22f9a21c179901e6dfcbdb68d035e70eae4d9e8 Mon Sep 17 00:00:00 2001 From: kylo252 <59826753+kylo252@users.noreply.github.com> Date: Thu, 16 Sep 2021 09:58:32 +0200 Subject: fix: more robust reloading (#1556) --- README.md | 36 +++++++++--------------------------- 1 file changed, 9 insertions(+), 27 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index 9f57ffae..e3873408 100644 --- a/README.md +++ b/README.md @@ -123,43 +123,25 @@ To update LunarVim: ```bash cd ~/.local/share/lunarvim/lvim && git pull -:PackerSync +lvim +LvimCacheReset +PackerUpdate ``` ## Known Issues + If you get either of the following errors - init.lua:6: module 'bootstrap' not found: - /home/user/.config/nvim/config.lua not found, falling back to /home/user/.config/nvim/lv-config.lua -Try the following: +Try the following methods: +1. clear up the cache files used by the startup processing. You can either pass it as an argument ```bash -which lvim -# if output is /usr/local/bin/lvim remove it -sudo rm /usr/local/bin/lvim - -which lvim -# if output is ~/.local/bin/lvim, open lvim and run :PackerSync. That should get you to a working state - -# otherwise if `which lvim` returns `not found`, -Make sure the `lvim` file exists in `~/.local/bin/lvim`. -If the file exists,make sure `~/.local/bin` is in your PATH. If not, [add it](https://www.lunarvim.org/02-after-install.html#add-lvim-to-path) -either reinstall again or manually add the lunarvim launcher - -If the file doesn't exist, create the file -cd ~/.local/bin -touch lvim -chmod 755 lvim +lvim +LvimCacheReset ``` +or just call it manually when inside LunarVim `:LvimCacheReset` -And then add the following to the lvim file you created. Replace all `torvalds` with your user name - +2. make sure your `lvim` binary is up-to-date ```bash -#!/bin/sh - -export LUNARVIM_CONFIG_DIR="${LUNARVIM_CONFIG_DIR:-/home/torvalds/.config/lvim}" -export LUNARVIM_RUNTIME_DIR="${LUNARVIM_RUNTIME_DIR:-/home/torvalds/.local/share/lunarvim}" - -exec nvim -u "$LUNARVIM_RUNTIME_DIR/lvim/init.lua" "$@" - +LUNARVIM_RUNTIME_DIR="${LUNARVIM_RUNTIME_DIR:-$HOME/.local/share/lunarvim}" +bash "$LUNARVIM_RUNTIME_DIR/utils/installer/install_bin.sh" ``` ## Resources -- cgit v1.2.3