From 7a2a5fc810e6eaef185d9b0023b598a83c29d93e Mon Sep 17 00:00:00 2001 From: kylo252 <59826753+kylo252@users.noreply.github.com> Date: Sun, 31 Oct 2021 11:15:50 +0100 Subject: feat: add support for using minimal_lsp on windows (#1882) --- utils/bin/lvim.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'utils/bin') diff --git a/utils/bin/lvim.ps1 b/utils/bin/lvim.ps1 index 79950365..a031c219 100644 --- a/utils/bin/lvim.ps1 +++ b/utils/bin/lvim.ps1 @@ -6,4 +6,4 @@ $env:LUNARVIM_RUNTIME_DIR = ($env:LUNARVIM_RUNTIME_DIR, "$env:XDG_DATA_HOME\luna $env:LUNARVIM_CONFIG_DIR = ($env:LUNARVIM_CONFIG_DIR, "$env:XDG_CONFIG_HOME\lvim", 1 -ne $null)[0] $env:LUNARVIM_CACHE_DIR = ($env:LUNARVIM_CACHE_DIR, "$env:XDG_CACHE_HOME\lvim", 1 -ne $null)[0] -nvim -u "$env:LUNARVIM_RUNTIME_DIR\lvim\init.lua" +nvim -u "$env:LUNARVIM_RUNTIME_DIR\lvim\init.lua" @args -- cgit v1.2.3 From e8693406babee724dd51293dc6dad10931dbef45 Mon Sep 17 00:00:00 2001 From: kylo252 <59826753+kylo252@users.noreply.github.com> Date: Sun, 31 Oct 2021 16:23:44 +0100 Subject: perf(lsp): use the new upstream API for filetypes (#1836) --- utils/bin/test_runner.sh | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'utils/bin') diff --git a/utils/bin/test_runner.sh b/utils/bin/test_runner.sh index ee138345..6fc6858b 100644 --- a/utils/bin/test_runner.sh +++ b/utils/bin/test_runner.sh @@ -1,15 +1,17 @@ #!/usr/bin/env bash set -e -export LUNARVIM_CONFIG_DIR="${LUNARVIM_CONFIG_DIR:-"$HOME/.config/lvim"}" export LUNARVIM_RUNTIME_DIR="${LUNARVIM_RUNTIME_DIR:-"$HOME/.local/share/lunarvim"}" export LVIM_TEST_ENV=true -rm -f "$LUNARVIM_CONFIG_DIR/plugin/packer_compiled.lua" +# we should start with an empty configuration +TEST_BASE_DIR="$(mktemp -d)" + +export LUNARVIM_CONFIG_DIR="$TEST_BASE_DIR" +export LUNARVIM_CACHE_DIR="$TEST_BASE_DIR" lvim() { - # TODO: allow running with a minimal_init.lua nvim -u "$LUNARVIM_RUNTIME_DIR/lvim/tests/minimal_init.lua" --cmd "set runtimepath+=$LUNARVIM_RUNTIME_DIR/lvim" "$@" } @@ -18,3 +20,5 @@ if [ -n "$1" ]; then else lvim --headless -c "PlenaryBustedDirectory tests/ { minimal_init = './tests/minimal_init.lua' }" fi + +rm -rf "$TEST_BASE_DIR" -- cgit v1.2.3