summaryrefslogtreecommitdiff
path: root/script-beta/provider
diff options
context:
space:
mode:
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,