Asgard EHS

Open-source compliance tools for EHS professionals. Local-first, single-binary Go applications that work standalone or as an integrated ecosystem.


Project maintained by asgardehs Hosted on GitHub Pages — Theme by mattgraham

Back to Muninn docs

Configuration

Muninn resolves its vault path using a three-tier precedence chain. All configuration is optional; the defaults follow platform conventions.

Vault Path Resolution

Muninn checks these sources in order and uses the first non-empty value:

  1. MUNINN_VAULT_PATH environment variable — always wins
  2. Heimdall config (muninn.vault_path) — shared config store used across Asgard tools
  3. Platform default (see below)

Setting via environment variable

export MUNINN_VAULT_PATH="$HOME/knowledge"

Setting via Heimdall

heimdall config set muninn vault_path /home/you/knowledge

This persists the path so other Asgard tools can discover your vault. muninn init writes the vault path to Heimdall automatically.


Data Locations

Muninn follows platform conventions for where it stores data.

Vault directory

Where your notes live on disk.

Platform Default path
Linux ~/.local/share/muninn/
macOS ~/Library/Application Support/muninn/
Windows %LOCALAPPDATA%\muninn\

Vault Structure

After running muninn init, the vault directory looks like this:

muninn/
└── notes/             # markdown vault
    ├── some-topic.md
    ├── journal/       # daily notes (created by daily note command)
    │   ├── 2026-04-W1-05.md
    │   └── ...
    └── ...

Notes are plain markdown files with optional YAML frontmatter. Run git init inside the vault directory to start versioning your notes.


VS Code Extension Settings

The Muninn VS Code extension adds these settings (configurable in VS Code’s Settings UI or settings.json):

Setting Type Default Description
muninn.binaryPath string "muninn" Path to the muninn binary
muninn.vaultPath string "" Override vault path (defaults to env or platform path)
muninn.dailyNotes.folder string "journal" Subdirectory for daily notes within the vault
muninn.codeLens.enabled boolean true Show reference count above note titles
muninn.diagnostics.unresolvedLinks boolean true Show warnings for broken wikilinks
muninn.semanticTokens.enabled boolean true Enable LSP-driven syntax highlighting

These settings are passed to the LSP server on startup via initialization options. Changes take effect after restarting the extension (reload window).