diff options
author | cukmekerb <cukmekerb@gmail.com> | 2021-10-24 12:52:51 -0700 |
---|---|---|
committer | cukmekerb <cukmekerb@gmail.com> | 2021-10-24 12:52:51 -0700 |
commit | 911d14ed38a5f96ec2175d4adbc1f8290fd61a32 (patch) | |
tree | 461c23c13f0e2abcd19c80d9f434941c5c9480ed | |
parent | 558c1bd7733af1b7c76f007d384030772d39c204 (diff) | |
download | lite-xl-plugins-911d14ed38a5f96ec2175d4adbc1f8290fd61a32.tar.gz lite-xl-plugins-911d14ed38a5f96ec2175d4adbc1f8290fd61a32.zip |
project scan rate workaround
-rw-r--r-- | plugins/gitstatus.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/gitstatus.lua b/plugins/gitstatus.lua index fda1388..bb16025 100644 --- a/plugins/gitstatus.lua +++ b/plugins/gitstatus.lua @@ -3,6 +3,7 @@ local core = require "core" local config = require "core.config" local style = require "core.style" local StatusView = require "core.statusview" +local scan_rate = config.project_scan_rate or 5 local git = { @@ -35,7 +36,7 @@ core.add_thread(function() git.branch = nil end - coroutine.yield(config.project_scan_rate) + coroutine.yield(scan_rate) end end) |