diff options
Diffstat (limited to 'script-beta/provider/capability.lua')
-rw-r--r-- | script-beta/provider/capability.lua | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/script-beta/provider/capability.lua b/script-beta/provider/capability.lua new file mode 100644 index 00000000..aa95c758 --- /dev/null +++ b/script-beta/provider/capability.lua @@ -0,0 +1,42 @@ +local m = {} + +m.initer = { + -- 文本同步方式 + textDocumentSync = { + -- 打开关闭文本时通知 + openClose = true, + -- 文本改变时完全通知 TODO 支持差量更新(2) + change = 1, + }, + + hoverProvider = true, + definitionProvider = true, + referencesProvider = true, + renameProvider = { + prepareProvider = true, + }, + --documentSymbolProvider = true, + documentHighlightProvider = true, + --codeActionProvider = true, + --signatureHelpProvider = { + -- triggerCharacters = { '(', ',' }, + --}, + --workspace = { + -- workspaceFolders = { + -- supported = true, + -- changeNotifications = true, + -- } + --}, + --documentOnTypeFormattingProvider = { + -- firstTriggerCharacter = '}', + --}, + --executeCommandProvider = { + -- commands = { + -- 'config', + -- 'removeSpace', + -- 'solve', + -- }, + --}, +} + +return m |