I have a problem with CONFIG.md entry. Installed joekrill/silverbullet-treeview and wanted to add configuration. When I have
config.set("plugs", {
-- Add your plugs here (https://silverbullet.md/Plugs)
-- Then run the `Plugs: Update` command to update them
"github:joekrill/silverbullet-treeview/treeview.plug.js"
},
actionButton.define {
icon = "sidebar",
description = "Toggle Tree View",
run = function()
editor.invokeCommand("Tree View: Toggle")
end
}
)
It’s getting weird. You are the third person to make that mistake now if I understand you correctly. Anyway this is what is should look like, don’t nest those define calls in the config.set call.
I find it weird, because It seems very intuitive to me. I guess you could get tricked here, because the first code example is kind of working, although it’s not at all how this should be done, idk.
Maybe this should be mentioned in the docs, or we should have better error messages, although this doesn’t seem very easy to achieve, unsure. Interested what @zef thinks.
Many thx - now it’s working!
I also vote for an error, maybe with docker logs silverbullet and appreciate this more complete example with what to nest and what not
Now that I see this it indeed looks intuitive also to me..