diff options
Diffstat (limited to 'lua/simple-denote/init.lua')
| -rw-r--r-- | lua/simple-denote/init.lua | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/lua/simple-denote/init.lua b/lua/simple-denote/init.lua index 31abb58..b01ca7a 100644 --- a/lua/simple-denote/init.lua +++ b/lua/simple-denote/init.lua @@ -7,17 +7,19 @@ function M.load_cmd(options) vim.api.nvim_create_user_command("Denote", function(opts) if opts.fargs[1] == "note" then api.note(options) - elseif opts.fargs[1] == "retitle" then - api.retitle(options) - elseif opts.fargs[1] == "retag" then - api.retag(options) + elseif opts.fargs[1] == "title" then + api.title(options) + elseif opts.fargs[1] == "tag" then + api.tag(options) + elseif opts.fargs[1] == "signature" then + api.signature(options) else error("Unsupported operation " .. opts.fargs[1]) end end, { nargs = 1, complete = function() - return { "note", "retitle", "retag" } + return { "note", "retitle", "retag", "signature" } end, }) end |
