---
description: Defines the configuration of SilverBullet options
tags: meta
---
This is where you configure SilverBullet to your liking. See [[^Library/Std/Config]] for a full list of configuration options.

```space-lua
config.set {
  index = {
    search = { enabled = true },
    paragraph = { all = false },
    item = { all = true },
    task = { all = true },
  },
  
  plugs = {
    -- "ghr:MrMugame/silversearch",
    -- "ghr:MrMugame/silverbullet-pdf",
    -- "github:joekrill/silverbullet-treeview/treeview.plug.js",
    -- "ghr:deepkn/silverbullet-graphview",
    "github:silverbulletmd/silverbullet-mermaid/mermaid.plug.js",
    -- "ghr:LogeshG5/silverbullet-drawio",
    -- "ghr:LogeshG5/silverbullet-excalidraw"
  },

  silversearch = {
    -- Weighs specific fields more
    weights = {
      basename = 15
      -- Also available: tags, aliases, directory, displayName, content
    },
    -- Weighs pages with specific attributes set through frontmatter more if that attribute is included in the search
    weightCustomProperties = {
      books = 10
    },
    -- Files that have been edited more recently than, will be weighed more. Options are "day", "week", "month" or "disabled"
    recencyBoost = "week",
    -- Rank specific folders down
    downrankedFoldersFilters = {"Library/"},
    -- Normalize diatrics in queries and search terms. Words like "brûlée" or "žluťoučký" will be indexed as "brulee" and "zlutoucky".
    ignoreDiacritics = true,
    -- Similar to `ignoreDiacritics` but for arabic diatritics
    ignoreArabicDiacritics = false,
    -- Breaks urls down into searchable words
    tokenizeUrls = true,
    -- Breaks words seperated with camel case into searchable words
    splitCamelCase = true,
    -- Increases the fuzziness of the full-text search, options are "0", "1", "2"
    fuzziness = "1",
    -- Puts newlines into the excerpts as opposed to rendering it as one continous string
    renderLineReturnInExcerpts = true,
    -- You can specify paths to ignore while indexing here using git ignore syntax (You have to Reindex for it to take effect)
    --ignore = {
      --"API/**",
      --"Library/**",
      --"Repositories/**"
    --},
    -- Loads additional tokenizers, see the "Language support" section for more info
    --tokenizers = {
    --  ["Library/bob/tokenizer.js"] = {
    --    -- These options will be different for different tokenizers
    --    maxWordLength = 10
    --  }
    --}  
  },
  
  -- The treeview plug configuration
  treeview = {
    -- Determines where the panel is displayed:
    -- - "lhs" - left hand side
    -- - "rhs" - right hand side
    -- - "bhs" - bottom
    -- - "modal" - in a modal
    position = "lhs",

    -- Must be > 0.
    -- position = "lhs" | "rhs": determines the width of the panel.
    -- position = "modal": sets the margin around the modal window.
    -- position = "bhs": No effect
    size=0.5,

    dragAndDrop = {
      -- Set to false to disable drag-and-drop
      enabled = true,

      -- Set to false to disable the confirmation prompt shown when dragging and
      -- dropping pages that causes them to be renamed/moved.
      confirmOnRename = true
    },

    -- An array of exclusion rules that will exclude pages from being
    -- displayed in the sidebar.
    exclusions = {
      {
        -- Filter by regular expression:
        type = "regex",
        -- Regular Expression string to exclude pages from the tree
        -- Examples:
        -- - Any page that is all-caps: "^[A-Z]+$"
        -- - A specific set of pages: "^(?:CONFIG|Library|index).*$"
        -- - Any path containing Hidden (e.g. test/Hidden/page1): "Hidden"
        rule="^(?:CONFIG|Library|Repositories).*$",
        -- Optional: set to true to negate the rule, only showing pages that match this regex.
        negate= false,
      },
      {
        -- Filter by page tags:
        type = "tags",
        tags = {"meta"},
        -- Optional: set to true to negate the rule, only showing pages that include any of the tags.
        negate = false
      }
    }
  },

  graphview = {
    ignoredPrefixes = {
      "Library",
      "CONFIG",
      "Repositories"
    },
    enableDecorations = true,
    position = "rhs",
    colormap = {
      path = {
        services = "01017a",
        notes = "02bdb6",
        projects = "ffc533",
        howto = "96020e",
      },
      tag = {
        garden = "0bbd02"
      },
    },
  },

  mermaid = {
    version = "11.4.0",
    integrity = "new integrity hash",
    -- or disable integrity checking
    -- integrity_disabled = true
    -- optional: register icon packs 
    icon_packs = {
      {
        name = "logos",
        url = "https://unpkg.com/@iconify-json/logos@1/icons.json",
      },
     },
  }
}
```

```space-lua
-- managed-by: configuration-manager
config.set("journal.template", "80_CONFIG/Templates/sd_day")
config.set("sync.documents", true)
config.set("github.name", "Guillaume RYCKELYNCK")
config.set("github.email", "guillaume@ryckelynck.info")
config.set("journal.prefix", "01_JOURNAL/2026/")
config.set("smartQuotes.single.left", "'")
config.set("smartQuotes.single.right", "'")
config.set("index.paragraph.all", true)
```