summaryrefslogtreecommitdiff
path: root/server-beta/src/proto/capability.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2019-09-20 15:10:00 +0800
committer最萌小汐 <sumneko@hotmail.com>2019-09-20 15:10:00 +0800
commit14fd68e06334352a9a7247b3d5bd9ba4259229a9 (patch)
tree05b51001219baa564e8a80ebf78dc8edc2473e58 /server-beta/src/proto/capability.lua
parent8a9202e826169f688b2dbb271e3a2b587c347a73 (diff)
downloadlua-language-server-14fd68e06334352a9a7247b3d5bd9ba4259229a9.zip
hello loli
Diffstat (limited to 'server-beta/src/proto/capability.lua')
-rw-r--r--server-beta/src/proto/capability.lua40
1 files changed, 40 insertions, 0 deletions
diff --git a/server-beta/src/proto/capability.lua b/server-beta/src/proto/capability.lua
new file mode 100644
index 00000000..cc8489bd
--- /dev/null
+++ b/server-beta/src/proto/capability.lua
@@ -0,0 +1,40 @@
+local m = {}
+
+m.initer = {
+ -- 文本同步方式
+ textDocumentSync = {
+ -- 打开关闭文本时通知
+ openClose = true,
+ -- 文本改变时完全通知 TODO 支持差量更新(2)
+ change = 1,
+ },
+
+ hoverProvider = true,
+ --definitionProvider = true,
+ --referencesProvider = true,
+ --renameProvider = true,
+ --documentSymbolProvider = true,
+ --documentHighlightProvider = true,
+ --codeActionProvider = true,
+ --signatureHelpProvider = {
+ -- triggerCharacters = { '(', ',' },
+ --},
+ --workspace = {
+ -- workspaceFolders = {
+ -- supported = true,
+ -- changeNotifications = true,
+ -- }
+ --},
+ --documentOnTypeFormattingProvider = {
+ -- firstTriggerCharacter = '}',
+ --},
+ --executeCommandProvider = {
+ -- commands = {
+ -- 'config',
+ -- 'removeSpace',
+ -- 'solve',
+ -- },
+ --},
+}
+
+return m