2023-12-27 22:16:07 +01:00
|
|
|
if vim.fn.exists("g:loaded_md-tools") == 0 then
|
|
|
|
local user_cmd = vim.api.nvim_create_user_command
|
|
|
|
|
|
|
|
user_cmd("HeaderPromote", function (opts)
|
2023-12-28 12:44:41 +01:00
|
|
|
require("md-tools").headerControl('promote')
|
2023-12-27 22:16:07 +01:00
|
|
|
end, {})
|
|
|
|
|
|
|
|
user_cmd("HeaderDemote", function (opts)
|
2023-12-28 12:44:41 +01:00
|
|
|
require("md-tools").headerControl('demote')
|
2023-12-27 22:16:07 +01:00
|
|
|
end, {})
|
|
|
|
|
|
|
|
vim.api.nvim_set_var("loaded_md-tools", true)
|
|
|
|
end
|