Replies: 1 comment
-
|
https://github.com/obsidian-nvim/obsidian.nvim/wiki/Keymaps
return {
"obsidian-nvim/obsidian.nvim",
opts = {
callbacks = {
enter_note = function(_, note)
vim.keymap.set("n", "<leader>ch", "<cmd>Obsidian toggle_checkbox<cr>", {
buffer = note.bufnr,
desc = "Toggle checkbox",
})
end,
},
}
}
autocmds can be put anywhere, just make sure they are loaded for example your init.lua, I personally have a |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm currently doing some cleanup of my config after the 3.13.0 release, in which the 'mappings' section of the configuration options has been removed and changed with a new way to make keymaps (vim.api.nvim_create_autocmd...). But I'm confused as to where in my config I'm supposed to put them?
I use lazy.nvim as my plugin manager, and I have a file for each plugin with the plugin inside return { }, and the plugin configuration in the opts = { } section within that return function. I'm not much an expert at lua, so I'm not quite sure where keymap function would go.
Beta Was this translation helpful? Give feedback.
All reactions