summaryrefslogtreecommitdiff
path: root/server/src/service.lua
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/service.lua')
-rw-r--r--server/src/service.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/server/src/service.lua b/server/src/service.lua
index c361bd78..9f05ad1b 100644
--- a/server/src/service.lua
+++ b/server/src/service.lua
@@ -19,6 +19,8 @@ local function listen(self, input, output)
else
subprocess.filemode(io.stdout, 'b')
end
+ io.input():setvbuf 'no'
+ io.output():setvbuf 'no'
local session = lsp()
local cache = ''
@@ -51,7 +53,6 @@ local function listen(self, input, output)
end)
session:setOutput(function (buf)
io.write(buf)
- io.flush()
end)
session:setMethod(function (method, params)
local optional