feat(nvim): add new obsidian mappings

This commit is contained in:
Sergio Laín 2024-01-23 10:06:14 +01:00
parent b726f4cc10
commit 82f98f0504
No known key found for this signature in database
GPG key ID: 14C9B8080681777B

View file

@ -34,7 +34,22 @@ return {
template = "_data_/templates/journal/daily_entry.md", template = "_data_/templates/journal/daily_entry.md",
}, },
mappings = {}, mappings = {
-- Overrides the 'gf' mapping to work on markdown/wiki links within your vault.
["gf"] = {
action = function()
return require("obsidian").util.gf_passthrough()
end,
opts = { noremap = false, expr = true, buffer = true },
},
-- Toggle check-boxes.
["<C-c>"] = {
action = function()
return require("obsidian").util.toggle_checkbox()
end,
opts = { buffer = true },
},
},
templates = { templates = {
subdir = "_data_/templates", subdir = "_data_/templates",