Skip to content

Commit

Permalink
scaffold
Browse files Browse the repository at this point in the history
  • Loading branch information
clpi committed Nov 16, 2024
1 parent 4a4624f commit 9a3984a
Show file tree
Hide file tree
Showing 7 changed files with 272 additions and 17 deletions.
7 changes: 7 additions & 0 deletions lua/dorm/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,13 @@ function dorm.setup(cfg)
cfg = cfg or {
load = {
base = {},
workspace = {
config = {
workspaces = {
dorm = "~/dorm"
}
}
}
},
}

Expand Down
Empty file added lua/dorm/lsp/init.lua
Empty file.
38 changes: 21 additions & 17 deletions lua/dorm/mod/base/module.lua
Original file line number Diff line number Diff line change
Expand Up @@ -28,21 +28,25 @@ local mod = dorm.mod
return mod.create_meta(
-- "treesitter",

"base",
"encrypt",
"autocmd",
"notes",
"maps",
"cmd",
"store",
"code",
"metadata",
"capture",
"template",
"run",
"search",
"todo",
"ui",
"calendar",
"link"
"base",
"encrypt",
"autocmd",
"notes",
"maps",
"cmd",
"store",
"code",
"pick",
"metadata",
"capture",
"template",
"track",
"snippets",
"run",
"sync",
"search",
"todo",
"ui",
"calendar",
"link"
)
61 changes: 61 additions & 0 deletions lua/dorm/mod/pick/module.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
local d = require("dorm")
local lib, mod = d.lib, d.mod

local module = mod.create("pick")

module.load = function()
mod.await("cmd", function(cmd)
cmd.add_commands_from_table({
["pick"] = {
subcommands = {
update = {
args = 0,
name = "pick.update"
},
insert = {
name = "pick.insert",
args = 0,
},
},
name = "pick"
}
})
end)
end



module.setup = function()
return {
success = true,
requires = {
"workspace"
}

}
end

module.public = {

}

module.config.private = {

}
module.config.public = {

}
module.private = {

}
module.events = {}


module.events.subscribed = {
cmd = {
["pick.insert"] = true,
["pick.update"] = true,
},
}

return module
61 changes: 61 additions & 0 deletions lua/dorm/mod/snippets/module.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
local d = require("dorm")
local lib, mod = d.lib, d.mod

local module = mod.create("snippets")

module.load = function()
mod.await("cmd", function(cmd)
cmd.add_commands_from_table({
["snippets"] = {
subcommands = {
update = {
args = 0,
name = "snippets.update"
},
insert = {
name = "snippets.insert",
args = 0,
},
},
name = "snippets"
}
})
end)
end



module.setup = function()
return {
success = true,
requires = {
"workspace"
}

}
end

module.public = {

}

module.config.private = {

}
module.config.public = {

}
module.private = {

}
module.events = {}


module.events.subscribed = {
cmd = {
["snippets.insert"] = true,
["snippets.update"] = true,
},
}

return module
61 changes: 61 additions & 0 deletions lua/dorm/mod/sync/module.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
local d = require("dorm")
local lib, mod = d.lib, d.mod

local module = mod.create("sync")

module.load = function()
mod.await("cmd", function(cmd)
cmd.add_commands_from_table({
["sync"] = {
subcommands = {
update = {
args = 0,
name = "sync.update"
},
insert = {
name = "sync.insert",
args = 0,
},
},
name = "sync"
}
})
end)
end



module.setup = function()
return {
success = true,
requires = {
"workspace"
}

}
end

module.public = {

}

module.config.private = {

}
module.config.public = {

}
module.private = {

}
module.events = {}


module.events.subscribed = {
cmd = {
["sync.insert"] = true,
["sync.update"] = true,
},
}

return module
61 changes: 61 additions & 0 deletions lua/dorm/mod/track/module.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
local d = require("dorm")
local lib, mod = d.lib, d.mod

local module = mod.create("track")

module.load = function()
mod.await("cmd", function(cmd)
cmd.add_commands_from_table({
["track"] = {
subcommands = {
update = {
args = 0,
name = "track.update"
},
insert = {
name = "track.insert",
args = 0,
},
},
name = "track"
}
})
end)
end



module.setup = function()
return {
success = true,
requires = {
"workspace"
}

}
end

module.public = {

}

module.config.private = {

}
module.config.public = {

}
module.private = {

}
module.events = {}


module.events.subscribed = {
cmd = {
["track.insert"] = true,
["track.update"] = true,
},
}

return module

0 comments on commit 9a3984a

Please sign in to comment.