mirror of
https://github.com/jiriks74/presence.nvim
synced 2025-07-21 08:28:49 +02:00
Initial commit
This commit is contained in:
commit
a656ba5361
8 changed files with 720 additions and 0 deletions
plugin
15
plugin/presence.vim
Normal file
15
plugin/presence.vim
Normal file
|
@ -0,0 +1,15 @@
|
|||
" Define autocommands to handle auto-update events
|
||||
augroup presence_events
|
||||
autocmd!
|
||||
if g:presence_auto_update
|
||||
autocmd BufRead * lua package.loaded.presence:update()
|
||||
endif
|
||||
augroup END
|
||||
|
||||
" Fallback to setting up the plugin automatically
|
||||
if !exists("g:presence_has_setup")
|
||||
lua << EOF
|
||||
local Presence = require("presence"):setup()
|
||||
Presence.log:debug("Custom setup not detected, plugin set up using defaults")
|
||||
EOF
|
||||
endif
|
Loading…
Add table
Add a link
Reference in a new issue