Obisiand.nvim Plugin
Obsidian.nvim is a plugin for Neovim that recreates some functionality from Obsidian and enables launching and using Obsidian features for other things.
I added it to my Lazy plugins like so:
T282828
Tb4b4b4{
Ta5d6ff"Ta5d6ffepwalsh/obsidian.nvimTa5d6ff"Tb4b4b4,
Te6edf3version Tff7b72= Ta5d6ff"Ta5d6ff*Ta5d6ff"Tb4b4b4, T8b949e-- recommended, use latest release instead of latest commit
Te6edf3lazy Tff7b72= Tff7b72trueTb4b4b4,
Te6edf3ft Tff7b72= Ta5d6ff"Ta5d6ffmarkdownTa5d6ff"Tb4b4b4,
Te6edf3dependencies Tff7b72= Tb4b4b4{
Ta5d6ff"Ta5d6ffnvim-lua/plenary.nvimTa5d6ff"Tb4b4b4,
Tb4b4b4},
Te6edf3config Tff7b72= Tff7b72functionTb4b4b4(Tb4b4b4)
Tffa657requireTb4b4b4(Ta5d6ff"Ta5d6ffobsidianTa5d6ff"Tb4b4b4).Td2a8ffsetupTb4b4b4({
Te6edf3disable_frontmatter Tff7b72= Tff7b72trueTb4b4b4, T8b949e-- super important!!!
Te6edf3workspaces Tff7b72= Tb4b4b4{
Tb4b4b4{
Te6edf3name Tff7b72= Ta5d6ff"Ta5d6ffmessyTa5d6ff"Tb4b4b4,
Te6edf3path Tff7b72= Ta5d6ff"Ta5d6ff~/messyTa5d6ff"Tb4b4b4,
Tb4b4b4},
Tb4b4b4{
Te6edf3name Tff7b72= Ta5d6ff"Ta5d6ffmuddocsTa5d6ff"Tb4b4b4,
Te6edf3path Tff7b72= Ta5d6ff"Ta5d6ff~/mud-prep/muddocs/Ta5d6ff"Tb4b4b4,
Tb4b4b4},
Tb4b4b4},
Tb4b4b4})
Tff7b72endTb4b4b4,
Tb4b4b4}
This makes it load on start, to be activated for markdown documents, with two vaults configured.
│ Vaults are just directories of notes in Obsidian parlance.
The T383838disable_frontmatter option is so that it wont reformat my front matter blocks and inject extra garbage into them. It injected an id with the creation or last save if no id was present for an existing document. I use file names for that information. And I track all my notes in git for anything else I might want to know about them. But the biggest part is that this disables all the modifications to my YAML headers on save, so it stops it from turning my condensed one-line tag list into a multi line nightmare.
YAML arrays can be stored like so:
T282828
Tff7b72fooTb4b4b4: Tb4b4b4[Te6edf3barTb4b4b4, Te6edf3bazTb4b4b4, Te6edf3quuxTb4b4b4]
Or:
T282828
Tff7b72fooTb4b4b4:
Tb4b4b4- Ta5d6ffbar
Tb4b4b4- Ta5d6ffbaz
Tb4b4b4- Ta5d6ffquux
I prefer the condensed view for my headers because it means my documents begin at a consistent offset that I find visually appealing.
Tags: nvim
Tags
Navigation
Backlinks