Skip to content
This repository has been archived by the owner on May 5, 2023. It is now read-only.

Commit

Permalink
Don't set/get options in the fast handler
Browse files Browse the repository at this point in the history
Fixes #23
  • Loading branch information
lewis6991 committed Sep 10, 2021
1 parent fde49d7 commit c9a54d1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lua/impatient.lua
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,11 @@ 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')

Expand Down

0 comments on commit c9a54d1

Please sign in to comment.