You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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,
}.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
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:
Beta Was this translation helpful? Give feedback.
All reactions