Skip to content

Commit

Permalink
updating lsp
Browse files Browse the repository at this point in the history
  • Loading branch information
clpi committed Dec 2, 2024
1 parent 44bd947 commit cc27dbe
Show file tree
Hide file tree
Showing 27 changed files with 973 additions and 719 deletions.
3 changes: 1 addition & 2 deletions lua/word/mod/config/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ local M = Mod.create_meta(
"data.log",
"template",
"parse",
"search",
"find",
"edit",
"edit.indent",
-- "code",
Expand All @@ -39,7 +39,6 @@ local M = Mod.create_meta(
-- "time",
-- "run",
-- "sync",
-- "search",
-- "publish",
-- "link"
"todo"
Expand Down
File renamed without changes.
30 changes: 15 additions & 15 deletions lua/word/mod/search/init.lua → lua/word/mod/find/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,29 +4,29 @@ local e = vim.lpeg
local d = require("word")
local lib, mod = d.lib, d.mod

local init = mod.create("search")
local M = mod.create("find")

init.load = function()
M.load = function()
mod.await("cmd", function(cmd)
cmd.add_commands_from_table({
agenda = {
find = {
subcommands = {
update = {
args = 0,
name = "agenda.update",
name = "find.update",
},
insert = {
name = "agenda.insert",
name = "find.insert",
args = 0,
},
},
name = "agenda",
name = "find",
},
})
end)
end

init.setup = function()
M.setup = function()
return {
loaded = true,
requires = {
Expand All @@ -35,17 +35,17 @@ init.setup = function()
}
end

init.data = {}
M.data = {}

init.config.public = {}
init.data.data = {}
init.events = {}
M.config.public = {}
M.data.data = {}
M.events = {}

init.events.subscribed = {
M.events.subscribed = {
cmd = {
["agenda.insert"] = true,
["agenda.update"] = true,
["find.insert"] = true,
["find.update"] = true,
},
}

return init
return M
Loading

0 comments on commit cc27dbe

Please sign in to comment.