fix(nvim): obsidian plugin removed the callbacks table
This commit is contained in:
parent
28545dbb8e
commit
04daca30a9
1 changed files with 9 additions and 19 deletions
|
@ -65,25 +65,15 @@ return {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
mappings = {
|
callbacks = {
|
||||||
["gf"] = {
|
enter_note = function(_, note)
|
||||||
action = function()
|
vim.keymap.set("n", "gf", "<cmd>ObsidianFollowLink<cr>", {
|
||||||
return require("obsidian").util.gf_passthrough()
|
buffer = note.bufnr,
|
||||||
|
expr = note.expr,
|
||||||
|
noremap = note.noremap,
|
||||||
|
desc = "File Passthrough",
|
||||||
|
})
|
||||||
end,
|
end,
|
||||||
opts = { noremap = false, expr = true, buffer = true },
|
|
||||||
},
|
|
||||||
["<C-c>"] = {
|
|
||||||
action = function()
|
|
||||||
return require("obsidian").util.toggle_checkbox()
|
|
||||||
end,
|
|
||||||
opts = { buffer = true },
|
|
||||||
},
|
|
||||||
["<cr>"] = {
|
|
||||||
action = function()
|
|
||||||
return require("obsidian").util.smart_action()
|
|
||||||
end,
|
|
||||||
opts = { buffer = true, expr = true },
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
|
|
||||||
new_notes_location = "notes_subdir",
|
new_notes_location = "notes_subdir",
|
||||||
|
|
Loading…
Add table
Reference in a new issue