summaryrefslogtreecommitdiff
path: root/script-beta/provider
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2020-10-22 14:34:04 +0800
committer最萌小汐 <sumneko@hotmail.com>2020-10-22 14:34:04 +0800
commitbc7233545056f7bcfc2b50ba476099fa191701de (patch)
treef8469e3501a57b81542ec9d20544347569982467 /script-beta/provider
parent2881d5d769033594dca45d659509fa0de3c746bf (diff)
downloadlua-language-server-bc7233545056f7bcfc2b50ba476099fa191701de.zip
整理代码
Diffstat (limited to 'script-beta/provider')
-rw-r--r--script-beta/provider/semantic-tokens.lua7
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,