Jesse34 downloadsEdit source files with CodeMirror 6 and language servers, without leaving the app.
Onyx is an Obsidian plugin for editing source files with CodeMirror 6 and language-server support without leaving Obsidian.
Onyx is desktop-only. Language servers are configured explicitly by each
project. Put onyx.toml at the project root, for example:
name = "My C++ project"
[lsp.cpp]
command = ["nix", "develop", ".", "-c", "clangd"]
The file's directory is the project root. Commands are exact argument arrays:
Onyx does not invoke a shell, guess project boundaries, choose server versions,
or modify PATH. Before running a new or changed configuration, use Onyx:
Trust current project's language server and review the displayed command.
Install Onyx through Obsidian's community plugins browser when it becomes
available. For a manual installation, download main.js, manifest.json, and
styles.css from a release and place them in:
<vault>/.obsidian/plugins/onyx/
Restart Obsidian, then enable Onyx under Settings → Community plugins.
npm install
npm test
npm run lint
npm run build