vitallish / dotfiles

0 stars 0 forks source link

Keymaps are not perfectly tied to obsidian vault files #2

Open vitallish opened 8 months ago

vitallish commented 8 months ago

https://github.com/vitallish/dotfiles/blob/e6b6f48a49e5125dccdd944f937cc65008ef8b21/.config/nvim/lua/plugins/notes.lua#L25-L30

The issue here is once the plugin is loaded all other buffers - even those not in obsidian vault have this key combination mapped to them. Not a big deal but ideally it would just be for files that are not 'markdown' but also part the vault.

Setting it to just the local buffer means that it won't work if another obsidian note is opened.

vitallish commented 8 months ago

now it looks like it may be loaded with any markdown file? Not the worst thing but unexpected.