From bcd4b5e860d9b6fb804ee31dc31a0a28cf11f5fb Mon Sep 17 00:00:00 2001 From: Hawtian Wang Date: Thu, 25 Apr 2024 23:04:23 +0800 Subject: [PATCH] ... --- lua/dotvim/pkgs/editor/setup/obsidian.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lua/dotvim/pkgs/editor/setup/obsidian.lua b/lua/dotvim/pkgs/editor/setup/obsidian.lua index 7b369e13..43fc3951 100644 --- a/lua/dotvim/pkgs/editor/setup/obsidian.lua +++ b/lua/dotvim/pkgs/editor/setup/obsidian.lua @@ -14,6 +14,12 @@ return function() vim.api.nvim_command("ObsidianFollowLink") end end, { buffer = true, desc = "obsidian-follow-link" }) + vim.keymap.set("n", "ch", function() + return require("obsidian").util.toggle_checkbox() + end, { buffer = true, desc = "obsidian-toggle-checkbox" }) + vim.keymap.set("n", "", function() + return require("obsidian").util.smart_action() + end, { buffer = true, desc = "obsidian-smart-action", expr = true }) end, }) end