23 lines
355 B
Lua
23 lines
355 B
Lua
local M = {}
|
|
|
|
M.set_port = function(port)
|
|
default_port = '7070'
|
|
if port ~= nil then
|
|
default_port = port
|
|
end
|
|
|
|
return default_port
|
|
end
|
|
|
|
M.start = function(port)
|
|
default_port = M.set_port(port)
|
|
-- Create autocmd for execute cmd when autosave
|
|
end
|
|
|
|
M.file_saved = function()
|
|
local ouput = vim.fn.system('ls -l')
|
|
print(output)
|
|
end
|
|
|
|
return M
|