summaryrefslogtreecommitdiff
path: root/src/method
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2018-11-20 10:33:54 +0800
committer最萌小汐 <sumneko@hotmail.com>2018-11-20 10:33:54 +0800
commite91ae0fcc5de81029439d9f4cc4cb2ae7cac9f75 (patch)
tree19c84e1684297cd5a2977d457868010d692a9c55 /src/method
parentfd2badb3f994e216d9f807665b1812457b138d5b (diff)
downloadlua-language-server-e91ae0fcc5de81029439d9f4cc4cb2ae7cac9f75.zip
补完协议
Diffstat (limited to 'src/method')
-rw-r--r--src/method/init.lua2
-rw-r--r--src/method/initialized.lua3
-rw-r--r--src/method/shutdown.lua3
3 files changed, 8 insertions, 0 deletions
diff --git a/src/method/init.lua b/src/method/init.lua
index 2674f7ae..214997d7 100644
--- a/src/method/init.lua
+++ b/src/method/init.lua
@@ -5,6 +5,8 @@ local function init(name)
end
init 'initialize'
+init 'initialized'
+init 'shutdown'
init 'textDocument/definition'
init 'textDocument/didOpen'
init 'textDocument/didChange'
diff --git a/src/method/initialized.lua b/src/method/initialized.lua
new file mode 100644
index 00000000..0451dc50
--- /dev/null
+++ b/src/method/initialized.lua
@@ -0,0 +1,3 @@
+return function (lsp)
+ return true
+end
diff --git a/src/method/shutdown.lua b/src/method/shutdown.lua
new file mode 100644
index 00000000..0451dc50
--- /dev/null
+++ b/src/method/shutdown.lua
@@ -0,0 +1,3 @@
+return function (lsp)
+ return true
+end