✨ feat(nvim): add new obsidian mappings
This commit is contained in:
parent
b726f4cc10
commit
82f98f0504
1 changed files with 16 additions and 1 deletions
|
@ -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",
|
||||||
|
|
Loading…
Add table
Reference in a new issue