diff options
| author | kylo252 <[email protected]> | 2022-04-12 11:18:17 +0200 | 
|---|---|---|
| committer | GitHub <[email protected]> | 2022-04-12 11:18:17 +0200 | 
| commit | 1569202d39c40d7a44de5eb1b10cf203dd33af41 (patch) | |
| tree | f44862786fe8d39e5f7cd2ec7d0c101b27bc68ba /lua/lvim/impatient.lua | |
| parent | 3de6a404c92e495baa8688aa76d98c4ea9caa8c7 (diff) | |
fix(impatient): avoid get_options in fast handler (#2451)
Diffstat (limited to 'lua/lvim/impatient.lua')
| -rw-r--r-- | lua/lvim/impatient.lua | 4 | 
1 files changed, 4 insertions, 0 deletions
| diff --git a/lua/lvim/impatient.lua b/lua/lvim/impatient.lua index 4fdc0026..230e5195 100644 --- a/lua/lvim/impatient.lua +++ b/lua/lvim/impatient.lua @@ -203,6 +203,10 @@ function M.update_reduced_rtp()  end  local function load_package_with_cache_reduced_rtp(name) +  if vim.in_fast_event() then +    -- Can't set/get options in the fast handler +    return load_package_with_cache(name, "fast") +  end    local orig_rtp = get_option "runtimepath"    local orig_ei = get_option "eventignore" | 
