summaryrefslogtreecommitdiff
path: root/script/method/textDocument/didOpen.lua
diff options
context:
space:
mode:
Diffstat (limited to 'script/method/textDocument/didOpen.lua')
-rw-r--r--script/method/textDocument/didOpen.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/script/method/textDocument/didOpen.lua b/script/method/textDocument/didOpen.lua
new file mode 100644
index 00000000..e2a67fd2
--- /dev/null
+++ b/script/method/textDocument/didOpen.lua
@@ -0,0 +1,5 @@
+return function (lsp, params)
+ local doc = params.textDocument
+ lsp:open(doc.uri, doc.version, doc.text)
+ return true
+end