Skip to content

Commit cf057e0

Browse files
committed
fix #362
1 parent 4bbcbe7 commit cf057e0

2 files changed

Lines changed: 0 additions & 6 deletions

File tree

lua/livepreview/init.lua

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ function M.start(filepath, port)
5353
M.close()
5454

5555
M.serverObj = server.Server:new(config.config.dynamic_root and vim.fs.dirname(filepath) or nil)
56-
vim.wait(50, function()
5756
local function onTextChanged(client)
5857
local bufname = vim.api.nvim_buf_get_name(0)
5958
if not utils.supported_filetype(bufname) or utils.supported_filetype(bufname) == "html" then
@@ -86,9 +85,6 @@ function M.start(filepath, port)
8685
},
8786
})
8887

89-
return true
90-
end, 98)
91-
9288
return true
9389
end
9490

lua/livepreview/server/init.lua

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,8 +211,6 @@ function Server:start(ip, port, opts)
211211
end)
212212
table.insert(M.connecting_clients, client)
213213
end)
214-
215-
uv.run()
216214
end
217215

218216
--- Stop the server

0 commit comments

Comments
 (0)