diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-07-08 15:13:26 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-07-08 15:13:26 +0800 |
commit | de357b269401021fe38eae93ced5b5738877958a (patch) | |
tree | 3e6ba0896fbb82d169b7d25799199cca4955c381 | |
parent | 886f4c8dfe56ad914daedc513a3ee03bcb305e16 (diff) | |
download | lua-language-server-de357b269401021fe38eae93ced5b5738877958a.zip |
fix
-rw-r--r-- | script/config/config.lua | 4 | ||||
-rw-r--r-- | script/provider/provider.lua | 4 |
2 files changed, 2 insertions, 6 deletions
diff --git a/script/config/config.lua b/script/config/config.lua index a53f4369..1b023c04 100644 --- a/script/config/config.lua +++ b/script/config/config.lua @@ -305,7 +305,7 @@ function m.event(key, value, oldValue) if not m.delay then m.delay = {} timer.wait(0, function () - local delay = {} + local delay = m.delay m.delay = nil for _, info in ipairs(delay) do for _, callback in ipairs(m.watchList) do @@ -331,6 +331,4 @@ function m.init() end end -m.init() - return m diff --git a/script/provider/provider.lua b/script/provider/provider.lua index cdf9ce0f..208ff2c7 100644 --- a/script/provider/provider.lua +++ b/script/provider/provider.lua @@ -1,7 +1,5 @@ local util = require 'utility' local cap = require 'provider.capability' -local completion = require 'provider.completion' -local semantic = require 'provider.semantic-tokens' local await = require 'await' local files = require 'files' local proto = require 'proto.proto' @@ -15,7 +13,6 @@ local furi = require 'file-uri' local pub = require 'pub' local fs = require 'bee.filesystem' local lang = require 'language' -local plugin = require 'plugin' local progress = require 'progress' local tm = require 'text-merger' local nonil = require 'without-check-nil' @@ -40,6 +37,7 @@ end proto.on('initialize', function (params) client.init(params) + config.init() workspace.initPath(params.rootUri) return { capabilities = cap.getIniter(), |