diff options
| author | William Boman <william@redwill.se> | 2022-07-06 19:41:43 +0200 |
|---|---|---|
| committer | William Boman <william@redwill.se> | 2022-07-07 00:39:59 +0200 |
| commit | 5f634e0c37e723fc0c33e06b4fd5c2180178db40 (patch) | |
| tree | fa4f09363adefa8259e23e4d1ea036db628b1243 /tests/minimal_init.vim | |
| parent | feat(health): use stderr for java version, also check for JAVA_HOME (#765) (diff) | |
| download | mason-5f634e0c37e723fc0c33e06b4fd5c2180178db40.tar mason-5f634e0c37e723fc0c33e06b4fd5c2180178db40.tar.gz mason-5f634e0c37e723fc0c33e06b4fd5c2180178db40.tar.bz2 mason-5f634e0c37e723fc0c33e06b4fd5c2180178db40.tar.lz mason-5f634e0c37e723fc0c33e06b4fd5c2180178db40.tar.xz mason-5f634e0c37e723fc0c33e06b4fd5c2180178db40.tar.zst mason-5f634e0c37e723fc0c33e06b4fd5c2180178db40.zip | |
mason.nvim
Diffstat (limited to 'tests/minimal_init.vim')
| -rw-r--r-- | tests/minimal_init.vim | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/tests/minimal_init.vim b/tests/minimal_init.vim index 9af729b0..07a2ad62 100644 --- a/tests/minimal_init.vim +++ b/tests/minimal_init.vim @@ -3,11 +3,11 @@ set display=lastline set directory="" set noswapfile -let $lsp_installer = getcwd() +let $mason = getcwd() let $test_helpers = getcwd() .. "/tests/helpers" let $dependencies = getcwd() .. "/dependencies" -set rtp+=$lsp_installer,$test_helpers +set rtp+=$mason,$test_helpers set packpath=$dependencies packloadall @@ -16,7 +16,10 @@ lua require("luassertx") lua require("test_helpers") lua <<EOF -require("nvim-lsp-installer").settings { +local pkg_index = require "mason._generated.package_index" +pkg_index["dummy"] = "dummy_package" + +require("mason").setup { install_root_dir = os.getenv("INSTALL_ROOT_DIR"), } EOF @@ -25,6 +28,7 @@ function! RunTests() abort lua <<EOF require("plenary.test_harness").test_directory(os.getenv("FILE") or "./tests", { minimal_init = vim.fn.getcwd() .. "/tests/minimal_init.vim", + sequential = true, }) EOF endfunction |
