Page:
Extensions
Pages
Actions
Attachment
Audio recorder
Autocmds
Bookmarks
Breaking Changes
Cache
Checkbox
Commands
Completion
Daily Notes
Editing this wiki
Extensions
File
Folding
Footer
Frontmatter
Home
Images
Integrations
Keymaps
LSP Progress
LSP
Link
Navigation
Note
Open
Recipes
Resolvers
Scripting
Search
Startup Guide
Statusline
Sync
Tag
Template
Unique Note
Workspace
No results
3
Extensions
zizhou teng (n451) edited this page 2025-09-10 12:28:16 +08:00
Table of contents
This is for developers
Example plugin of integrating: obsidian-markmap.nvim
Organize your plugin like
So that your command shows up in the command completion/menu.
├── LICENSE
├── lua
│ └── obsidian
│ └── commands
│ └── map.lua # command name your want to add, should be minimal, requires the logic from map module
│ └── map
│ └── init.lua # actual logic
├── plugin
│ └── map.lua # register your command here
└── README.md
return {
"obsidian-nvim/obsidian.nvim",
dependencies = {
"your/plugin", -- makes sure your plugin loads first
},
}
Register your command
your-plugin-dir/plugin/map.lua:
require("obsidian").register_command("map", { nargs = 0 })
See commands/init.lua for usage.
🌟 obsidian.nvim
Topics
- Actions
- Autocmds
- Commands
- Folding
- Extensions
- Images
- Integrations
- Keymaps
- Navigation
- Scripting
- Startup-Guide
- Recipes
- LSP
- LSP-Progress