Add TodoToggle command and format code.
This commit is contained in:
parent
5be431132e
commit
adf9812f61
@ -1,13 +1,17 @@
|
||||
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)
|
||||
require("md-tools").headerControl('promote')
|
||||
end, {})
|
||||
user_cmd("HeaderPromote", function(opts)
|
||||
require("md-tools").headerControl("promote")
|
||||
end, {})
|
||||
|
||||
user_cmd("HeaderDemote", function (opts)
|
||||
require("md-tools").headerControl('demote')
|
||||
end, {})
|
||||
user_cmd("HeaderDemote", function(opts)
|
||||
require("md-tools").headerControl("demote")
|
||||
end, {})
|
||||
|
||||
vim.api.nvim_set_var("loaded_md-tools", true)
|
||||
user_cmd("ToDoToggle", function(opts)
|
||||
require("md-tools").toggleTodo()
|
||||
end, {})
|
||||
|
||||
vim.api.nvim_set_var("loaded_md-tools", true)
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user