Add TodoToggle command and format code.

This commit is contained in:
CronyAkatsuki 2023-12-28 14:22:10 +01:00
parent 5be431132e
commit adf9812f61

View File

@ -2,11 +2,15 @@ if vim.fn.exists("g:loaded_md-tools") == 0 then
local user_cmd = vim.api.nvim_create_user_command local user_cmd = vim.api.nvim_create_user_command
user_cmd("HeaderPromote", function(opts) user_cmd("HeaderPromote", function(opts)
require("md-tools").headerControl('promote') require("md-tools").headerControl("promote")
end, {}) end, {})
user_cmd("HeaderDemote", function(opts) user_cmd("HeaderDemote", function(opts)
require("md-tools").headerControl('demote') require("md-tools").headerControl("demote")
end, {})
user_cmd("ToDoToggle", function(opts)
require("md-tools").toggleTodo()
end, {}) end, {})
vim.api.nvim_set_var("loaded_md-tools", true) vim.api.nvim_set_var("loaded_md-tools", true)