CONFIG.md Problem or treeview plugin issue

Hi,

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
  }
)

everything is working fine. As soon as I add some

config.set {
  plugs = {
    "github:joekrill/silverbullet-treeview/treeview.plug.js"
  },
treeview = { 
}, 
... //see above

as stated in his GitHub - joekrill/silverbullet-treeview: SilverBullet TreeView plug
I revcieve a “Could not process config and no cached copy, please connect to the Internet” from my Chrome Browser.

So plz shall I ask there or is this a “CONFIG.md” issue?

TIA Chris

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.

config.set {
  plugs = {
    "github:joekrill/silverbullet-treeview/treeview.plug.js"
  },
  treeview = {
    ...
  }
}

actionButton.define {
  icon = "sidebar",
  description = "Toggle Tree View",
  run = function()
    editor.invokeCommand("Tree View: Toggle")
  end
}

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 :wink:
Now that I see this it indeed looks intuitive also to me..