Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add option for working from buffers #27

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

sdondley
Copy link
Collaborator

@sdondley sdondley commented Dec 31, 2022

This is an attempt to address #24. I don't know lua well or how to create a test for this feature but if someone can offer some guidance, I will give it a shot.

How this patch works:

Somewhere in the nvim config, add let g:instant_work_from_buffer=1. Once enabled, files opened in the client will have the neovim buftype set to nofile and it will not be possibe to save the buffer open in the client. It is presumed the first client sharing the file(s) will have some kind of autosave feature to periodically save the file to the storage device when changes are made. I've been using the Pocco81/auto-save.nvim plugin at https://github.com/Pocco81/auto-save.nvim which seems to work well.

Now the client user can just quit the open buffer without worrying about ugly error messages.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant