mirror of
https://github.com/jiriks74/presence.nvim
synced 2024-12-29 19:32:05 +01:00
10 lines
307 B
VimL
10 lines
307 B
VimL
|
" Define autocommands to handle auto-update events
|
||
|
function presence#SetAutoCmds()
|
||
|
augroup presence_events
|
||
|
autocmd!
|
||
|
if exists("g:presence_auto_update") && g:presence_auto_update
|
||
|
autocmd BufRead * lua package.loaded.presence:update()
|
||
|
endif
|
||
|
augroup END
|
||
|
endfunction
|