-
-
Notifications
You must be signed in to change notification settings - Fork 87
Extensions
zizhou teng (n451) edited this page Sep 10, 2025
·
3 revisions
This is for developers
Example plugin of integrating: obsidian-markmap.nvim
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.mdreturn {
"obsidian-nvim/obsidian.nvim",
dependencies = {
"your/plugin", -- makes sure your plugin loads first
},
}your-plugin-dir/plugin/map.lua:
require("obsidian").register_command("map", { nargs = 0 })See commands/init.lua for usage.