diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2020-10-22 14:34:04 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2020-10-22 14:34:04 +0800 |
commit | bc7233545056f7bcfc2b50ba476099fa191701de (patch) | |
tree | f8469e3501a57b81542ec9d20544347569982467 /script-beta/provider/semantic-tokens.lua | |
parent | 2881d5d769033594dca45d659509fa0de3c746bf (diff) | |
download | lua-language-server-bc7233545056f7bcfc2b50ba476099fa191701de.zip |
整理代码
Diffstat (limited to 'script-beta/provider/semantic-tokens.lua')
-rw-r--r-- | script-beta/provider/semantic-tokens.lua | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/script-beta/provider/semantic-tokens.lua b/script-beta/provider/semantic-tokens.lua index a8b1b23f..96db324e 100644 --- a/script-beta/provider/semantic-tokens.lua +++ b/script-beta/provider/semantic-tokens.lua @@ -1,6 +1,5 @@ local proto = require 'proto' -local tokenTypes = require 'define.TokenTypes' -local tokenModifiers = require 'define.TokenModifiers' +local define = require 'proto.define' local client = require 'provider.client' local isEnable = false @@ -32,8 +31,8 @@ local function enable() method = 'textDocument/semanticTokens/full', registerOptions = { legend = { - tokenTypes = toArray(tokenTypes), - tokenModifiers = toArray(tokenModifiers), + tokenTypes = toArray(define.TokenTypes), + tokenModifiers = toArray(define.TokenModifiers), }, range = true, full = false, |