diff options
| author | kylo252 <[email protected]> | 2022-10-22 15:25:46 +0200 | 
|---|---|---|
| committer | GitHub <[email protected]> | 2022-10-22 15:25:46 +0200 | 
| commit | 25c4241b07d2036fc5d0d4c18be43a16a5370ef0 (patch) | |
| tree | 4375736f21d6e8eaa316af748d9938d3c2740d52 /lua | |
| parent | 36c8bdee9ff59a0a63c1edfc445b5eb2886cf246 (diff) | |
refactor: clean up test env paths (#3318)
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/lvim/bootstrap.lua | 5 | ||||
| -rw-r--r-- | lua/lvim/lsp/config.lua | 2 | 
2 files changed, 2 insertions, 5 deletions
| diff --git a/lua/lvim/bootstrap.lua b/lua/lvim/bootstrap.lua index 5d980498..55a22502 100644 --- a/lua/lvim/bootstrap.lua +++ b/lua/lvim/bootstrap.lua @@ -10,7 +10,6 @@ end  local uv = vim.loop  local path_sep = uv.os_uname().version:match "Windows" and "\\" or "/" -local in_headless = #vim.api.nvim_list_uis() == 0  ---Join path segments that were passed as input  ---@return string @@ -96,9 +95,7 @@ function M:init(base_dir)      vim.cmd [[let &packpath = &runtimepath]]    end -  -- FIXME: currently unreliable in unit-tests -  if not in_headless then -    _G.PLENARY_DEBUG = false +  if not vim.env.LVIM_TEST_ENV then      require "lvim.impatient"    end diff --git a/lua/lvim/lsp/config.lua b/lua/lvim/lsp/config.lua index 358e83f8..eeba9fb0 100644 --- a/lua/lvim/lsp/config.lua +++ b/lua/lvim/lsp/config.lua @@ -39,7 +39,7 @@ local skipped_servers = {    "vuels",  } -local skipped_filetypes = { "markdown", "rst", "plaintext" } +local skipped_filetypes = { "markdown", "rst", "plaintext", "toml" }  local join_paths = require("lvim.utils").join_paths | 
