diff options
Diffstat (limited to 'lua/denote/cmd.lua')
| -rw-r--r-- | lua/denote/cmd.lua | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/lua/denote/cmd.lua b/lua/denote/cmd.lua deleted file mode 100644 index 91ca96e..0000000 --- a/lua/denote/cmd.lua +++ /dev/null @@ -1,26 +0,0 @@ -local M = { - commands = { "note", "retitle", "retag" }, -} - -local api = require("denote.api") - -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) - else - error("Unsupported operation " .. opts.fargs[1]) - end - end, { - nargs = 1, - complete = function() - return M.commands - end, - }) -end - -return M |
