summaryrefslogtreecommitdiff
path: root/script/provider/capability.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-11-03 18:36:58 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-11-03 18:36:58 +0800
commit74478473d38bbe4809d1e2bc4f82376085a65153 (patch)
tree12d8dea4e9eb3f471b51cdff7a08e2106f54cfa7 /script/provider/capability.lua
parent6c20773e98ef9028dc543242b12a9a6a8e836cd1 (diff)
downloadlua-language-server-74478473d38bbe4809d1e2bc4f82376085a65153.zip
#687 supports `utf-8-offsets`
Diffstat (limited to 'script/provider/capability.lua')
-rw-r--r--script/provider/capability.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/script/provider/capability.lua b/script/provider/capability.lua
index 76cadc0d..b712defc 100644
--- a/script/provider/capability.lua
+++ b/script/provider/capability.lua
@@ -48,6 +48,7 @@ end
function m.getIniter()
local initer = {
+ offsetEncoding = client.getOffsetEncoding(),
-- 文本同步方式
textDocumentSync = {
-- 打开关闭文本时通知