mirror of
https://github.com/hexedtech/codemp-nvim.git
synced 2024-11-22 07:24:52 +01:00
fix: added back create function
This commit is contained in:
parent
dfd3ae84f5
commit
2176d32540
1 changed files with 11 additions and 0 deletions
|
@ -125,11 +125,22 @@ local function sync(buffer)
|
|||
print(" !! buffer not managed")
|
||||
end
|
||||
|
||||
local function create(buffer)
|
||||
if buffer == nil then
|
||||
buffer = vim.fn.expand("%p")
|
||||
end
|
||||
if session.workspace == nil then
|
||||
error("join a workspace first")
|
||||
end
|
||||
session.workspace:create_buffer(buffer):await()
|
||||
end
|
||||
|
||||
|
||||
return {
|
||||
sync = sync,
|
||||
attach = attach,
|
||||
detach = detach,
|
||||
create = create,
|
||||
map = id_buffer_map,
|
||||
map_rev = buffer_id_map,
|
||||
ticks = ticks,
|
||||
|
|
Loading…
Reference in a new issue