mirror of
https://github.com/jiriks74/presence.nvim
synced 2025-07-22 17:08:47 +02:00
Add the ability to show the current line number in presence (#16)
* fix: rewrite for latest commit * fix: formatting * fix: use BufEnter instead of BufRead for more stable presence updates * fix: change vimscript variable from false to 0 Co-authored-by: Andrew Kwon <andrewshky@gmail.com> * fix: revert back to TextChanged rather than InsertEnter, refactor bits of the codebase * fix: formatting * fix: luacheck error and compare options to numeric values rather than booleans Co-authored-by: Andrew Kwon <andrewshky@gmail.com>
This commit is contained in:
parent
70a3c23ae0
commit
9fd2a30127
3 changed files with 81 additions and 50 deletions
autoload
|
@ -3,7 +3,7 @@ function presence#SetAutoCmds()
|
|||
augroup presence_events
|
||||
autocmd!
|
||||
if exists("g:presence_auto_update") && g:presence_auto_update
|
||||
autocmd BufRead * lua package.loaded.presence:update()
|
||||
autocmd BufEnter * lua package.loaded.presence:update()
|
||||
autocmd TextChanged * lua package.loaded.presence:update(nil, true)
|
||||
autocmd VimLeavePre * lua package.loaded.presence:unregister_self()
|
||||
endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue