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 = {
|
||||
["gf"] = {
|
||||
action = function()
|
||||
return require("obsidian").util.gf_passthrough()
|
||||
callbacks = {
|
||||
enter_note = function(_, note)
|
||||
vim.keymap.set("n", "gf", "<cmd>ObsidianFollowLink<cr>", {
|
||||
buffer = note.bufnr,
|
||||
expr = note.expr,
|
||||
noremap = note.noremap,
|
||||
desc = "File Passthrough",
|
||||
})
|
||||
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",
|
||||
|
|
Loading…
Add table
Reference in a new issue