aboutsummaryrefslogtreecommitdiff
path: root/lua/denote/cmd.lua
diff options
context:
space:
mode:
authorworkhorse <gravel.justness270@slmail.me>2024-06-03 16:47:42 -0400
committerworkhorse <gravel.justness270@slmail.me>2024-06-03 16:47:42 -0400
commit1bf7bc5b79636814db73a9148998c72fbe554d58 (patch)
tree726034d44493fa264a819a1089429eb0213e5593 /lua/denote/cmd.lua
parent6fe1f8d638bc3bfa52ff6433735f95a7eacbcba8 (diff)
downloadsimple-denote.nvim-1bf7bc5b79636814db73a9148998c72fbe554d58.tar.gz
Fixed heading config
Diffstat (limited to 'lua/denote/cmd.lua')
-rw-r--r--lua/denote/cmd.lua26
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