- Notifications
You must be signed in to change notification settings - Fork244
-
Since obsidian.nvim is not a language server (not yet, anyway 😉) some of its functionality relies on the filesystem being up-to-date with note buffers (see#476). With the new callback system you can ensure the filesystem is always up-to-date (except potentially for the buffer you're currently editing) by adding a simple "leave-note" callback to your obsidian.nvim config that writes the note buffer: callbacks= {-- Runs anytime you leave the buffer for a note.---@paramclientobsidian.Client---@paramnoteobsidian.Note---@diagnosticdisable-next-line:unused-localleave_note=function(client,note)vim.api.nvim_buf_call(note.bufnror0,function()vim.cmd"silent w"end)end, }. |
BetaWas this translation helpful?Give feedback.
All reactions
Replies: 0 comments
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment