Skip to content

kristijanhusak/vim-simple-notifications

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

vim-simple-notifications

Simple notification plugin to be used mostly by plugin developers. Uses floating/popup window if available, and falls back to echo if popups are not available.

Can be used as a standalone plugin:

" Vim packager
call packager#add('kristijanhusak/vim-simple-notifications')
" Vim Plug
Plug 'kristijanhusak/vim-simple-notifications'

or just copy autoload/notifications.vim file to your autoload folder, adapt public function names and you're good to go.

Example usage

All options provided via 2nd argument have default options. Check autoload/notifications.vim

notifications#info(msg: [List|String], opts: Dictionary)

call notifications#info(['This is an info notification', 'that spans multiple lines'])

screenshot-info

notifications#warning(msg: [List|String], opts: Dictionary)

call notifications#warning(['This is a warning', 'in the top left corner'], {'pos': 'topleft'})

screenshot-warning

notifications#error(msg: [List|String], opts: Dictionary)

call notifications#error(['Something went wrong', 'Please check your logs'], {'pos': 'top', 'width': 30, 'delay': 10000 })

screenshot-error

With title

call notifications#error(['Something went wrong', 'Please check your logs'], {'title': '[MyAwesomePlugin]'})

screenshot-error-title

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published