mirror of
https://github.com/jiriks74/presence.nvim
synced 2025-07-19 23:48:48 +02:00
Support peer-to-peer workspace state management
- Add sync logic to manage multi-client runtime state - Debounce and set activity on TextChanged events - Update timestamp to be workspace-specific - Set activity on an open nvim instance upon a VimLeave event
This commit is contained in:
parent
a2f6550177
commit
a325d154fc
5 changed files with 490 additions and 47 deletions
autoload
|
@ -4,6 +4,8 @@ function presence#SetAutoCmds()
|
|||
autocmd!
|
||||
if exists("g:presence_auto_update") && g:presence_auto_update
|
||||
autocmd BufRead * lua package.loaded.presence:update()
|
||||
autocmd TextChanged * lua package.loaded.presence:update(nil, true)
|
||||
autocmd VimLeavePre * lua package.loaded.presence:unregister_self()
|
||||
endif
|
||||
augroup END
|
||||
endfunction
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue