aboutsummaryrefslogtreecommitdiff
path: root/lua/simple-denote.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/simple-denote.lua')
-rw-r--r--lua/simple-denote.lua7
1 files changed, 6 insertions, 1 deletions
diff --git a/lua/simple-denote.lua b/lua/simple-denote.lua
index 3f199fe..12ba1f6 100644
--- a/lua/simple-denote.lua
+++ b/lua/simple-denote.lua
@@ -1,7 +1,8 @@
local M = {}
-local api = require("simple-denote.api")
local config = require("simple-denote.config")
+local api = require("simple-denote.api")
+local search = require ("simple-denote.search")
function M.load_cmd(options)
vim.api.nvim_create_user_command("Denote", function(opts)
@@ -13,6 +14,10 @@ function M.load_cmd(options)
api.tag(options)
elseif opts.fargs[1] == "signature" then
api.signature(options)
+ elseif opts.fargs[1] == "search" then
+ search.search(options)
+ elseif opts.fargs[1] == "test" then
+ search.test()
else
error("Unsupported operation " .. opts.fargs[1])
end