CONFIG.md Problem or treeview plugin issue

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.