From 33640834e4b07a8e9c5a6707ec0eadd863011ac0 Mon Sep 17 00:00:00 2001 From: kylo252 <59826753+kylo252@users.noreply.github.com> Date: Fri, 20 Aug 2021 22:59:40 +0200 Subject: fix: set runtime directories correctly (#1354) * fix: set runtime directories correctly This also simplifies the way to invoke LunarVim to just be: `nvim -u "$LUNARVIM_RUNTIME_DIR/lvim/init.lua"` Fixes #1352 * use libuv to get homedir path --- utils/bin/lvim | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'utils/bin/lvim') diff --git a/utils/bin/lvim b/utils/bin/lvim index b94d544f..c55ddda7 100755 --- a/utils/bin/lvim +++ b/utils/bin/lvim @@ -1,3 +1,5 @@ #!/bin/sh -exec nvim -u ~/.local/share/lunarvim/lvim/init.lua --cmd "set runtimepath+=~/.local/share/lunarvim/lvim" "$@" +LUNARVIM_RUNTIME_DIR=${LUNARVIM_RUNTIME_DIR:-"$HOME/.local/share/lunarvim"} + +exec nvim -u "$LUNARVIM_RUNTIME_DIR"/lvim/init.lua "$@" -- cgit v1.2.3 From 101c6834333ffb06856155054ea77747819ef5fc Mon Sep 17 00:00:00 2001 From: kylo252 <59826753+kylo252@users.noreply.github.com> Date: Mon, 23 Aug 2021 17:18:42 +0200 Subject: [Refactor] Installer v2 with support for backup (#1052) --- utils/bin/lvim | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) mode change 100755 => 100644 utils/bin/lvim (limited to 'utils/bin/lvim') diff --git a/utils/bin/lvim b/utils/bin/lvim old mode 100755 new mode 100644 index c55ddda7..2303be3c --- a/utils/bin/lvim +++ b/utils/bin/lvim @@ -1,5 +1,6 @@ #!/bin/sh -LUNARVIM_RUNTIME_DIR=${LUNARVIM_RUNTIME_DIR:-"$HOME/.local/share/lunarvim"} +export LUNARVIM_RUNTIME_DIR="${LUNARVIM_RUNTIME_DIR:-$HOME/.local/share/lunarvim}" +export LUNARVIM_CONFIG_DIR="${LUNARVIM_RUNTIME_DIR:-$HOME/.config/lvim}" -exec nvim -u "$LUNARVIM_RUNTIME_DIR"/lvim/init.lua "$@" +exec nvim -u "$LUNARVIM_RUNTIME_DIR/lvim/init.lua" "$@" -- cgit v1.2.3