Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Auto-write every note when leaving buffer#481

Pinned
epwalsh started this conversation inCookbook
Discussion options

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,      }.
You must be logged in to vote

Replies: 0 comments

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Labels
None yet
1 participant
@epwalsh

[8]ページ先頭

©2009-2025 Movatter.jp