In order to support leveraging vimwiki-server on buffers with unsaved changes, we need to create temporary files where the buffers are written. This enables the server to monitor and provide accurate inspection information and appears to be how vim-ale does things as well.
Provide a global or buffer option to enable/disable this feature
Provide a global or buffer option to specify a delay between buffer changes and writing to the file
Update element commands to use buffer and not real file
Leverage the libuv timer to write the buffer to file as well as cancellation for when typing begins again
Buffer should be flushed to temporary file whenever leaving insert mode
In order to support leveraging vimwiki-server on buffers with unsaved changes, we need to create temporary files where the buffers are written. This enables the server to monitor and provide accurate inspection information and appears to be how vim-ale does things as well.