Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
fba69e6
Use branch when checking for new commits
thisisrandy Oct 4, 2019
5037c97
- Added origin/[branch] to rev-list call
thisisrandy Oct 10, 2019
3519830
Added wait to the end of remote update chain
thisisrandy Oct 10, 2019
af6c044
No need to say len(keys(...)) (this matches other branches better)
thisisrandy Oct 10, 2019
72c9dcf
Rewrite in python
thisisrandy Oct 11, 2019
bf43e03
Properly casts result of vim.eval to int
thisisrandy Oct 11, 2019
817220d
Adds g:outdated_plugins_trigger_mode
thisisrandy Oct 11, 2019
1ef52dc
Update to for python3
thisisrandy Oct 14, 2019
470655b
Decode process output from binary and use run()
thisisrandy Oct 14, 2019
2031956
Add guard to keep plug.vim from throwing exception
thisisrandy Oct 29, 2019
a086e7d
Add .gitignore
thisisrandy Oct 29, 2019
3fdf2fa
Change installation instructions to fork path
thisisrandy Mar 4, 2021
45bbdb1
Formatting
thisisrandy Apr 19, 2021
f556675
Use master if plug["branch"] is empty
thisisrandy Apr 19, 2021
ae13c8a
Add .venv + generalize pycache in gitignore
thisisrandy Jul 25, 2021
e63cc25
Add poetry
thisisrandy Jul 25, 2021
0f0b468
Rewrite as remote plugin to avoid blocking
thisisrandy Jul 25, 2021
c520cb9
Fix grammar
thisisrandy Jul 25, 2021
061169e
Add autocmd to call plugin fn to config section
thisisrandy Jul 25, 2021
1e9b9b4
Clarify wording/grammar + addt. info
thisisrandy Jul 25, 2021
84804f2
Add note about trigger mode default value
thisisrandy Jul 25, 2021
cfd1d8b
Specify that the plugin is non-blocking
thisisrandy Jul 25, 2021
2d96d24
Specify why the plugin is needed alongside vim-plug
thisisrandy Jul 25, 2021
c6a45a8
Add note about trigger mode being disruptive
thisisrandy Jul 25, 2021
ddc5819
Move autocmd to install section
thisisrandy Jul 25, 2021
0f47831
Move requirements to their own section
thisisrandy Jul 25, 2021
bde2d6d
Update badges
thisisrandy Jul 25, 2021
967536e
Add development section
thisisrandy Jul 25, 2021
a6a3a58
Don't guess branch if not specified explicitly
thisisrandy Sep 16, 2022
ce3f712
Merge pull request #2 from thisisrandy/bad-branch
thisisrandy Sep 16, 2022
7a74065
Use echom instead of echo to print messages
thisisrandy Aug 4, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
__pycache__
.venv
80 changes: 62 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,45 +1,89 @@
![Vim support](https://img.shields.io/badge/vim-support-brightgreen.svg?style=flat-square)
![Vim support](https://img.shields.io/badge/neovim-support-brightgreen.svg?style=flat-square)
![GitHub release](https://img.shields.io/github/release/semanser/vim-outdated-plugins.svg?style=flat-square)
![Vim support](https://img.shields.io/badge/vim-unsupported-red.svg?style=flat-square)
![Neovim support](https://img.shields.io/badge/neovim-supported-green.svg?style=flat-square)
![Python version](https://img.shields.io/badge/python-%5E3.5-yellow?style=flat-square)
![GitHub release](https://img.shields.io/github/v/release/thisisrandy/vim-outdated-plugins?style=flat-square)

# vim-outdated-plugins
Async plugin for showing number of your outdated plugins.

## What it does?
This plugin automatically checks if any of your plugins are outdated and display a message about that.
A [remote](https://pynvim.readthedocs.io/en/latest/usage/remote-plugins.html)
(non-blocking) plugin for showing the number of and automatically updating
outdated plugins managed via [vim-plug](https://github.com/junegunn/vim-plug)

To use this plugin make sure you have **git** installed.
## What does it do?

This plugin provides a mechanism for displaying a message indicating whether any
of your plugins are outdated. It can also optionally trigger an update if
needed. It fills a gap in [vim-plug](https://github.com/junegunn/vim-plug),
which has no mechanism for fetching updates without also installing them and
cannot function non-disruptively in the background

## Installation

Add the following line inside of the `call plug#begin()` section of your
`init.vim`:

```vim
Plug 'semanser/vim-outdated-plugins'
Plug 'thisisrandy/vim-outdated-plugins'
```

and anywhere after `call plug#end()`, add

```vim
" This line is required to check for outdated plugins on startup
autocmd VimEnter * call CheckOutdatedPlugins()
```

## Configuration

```vim
" Do not show any message if all plugins are up to date. 0 by default
let g:outdated_plugins_silent_mode = 1

" Trigger :PlugUpdate as needed. 0 by default. Note that, when triggered, this
" will open and focus a vertical split and do blocking work, which some users may
" find disruptive on startup
let g:outdated_plugins_trigger_mode = 1
```

## Requirements

- [neovim](https://neovim.io/)
- [git](https://git-scm.com)
- [vim-plug](https://github.com/junegunn/vim-plug)
- [python](https://www.python.org/) >= 3.5

## Development

Fork this repository and point the `vim-plug` section of your `init.vim` to it.
After running `:PlugInstall`, you can edit the code directly in the `vim-plug`
directory, which is `~/.config/nvim/plugged` by default. Note that nvim must be
restarted for changes to be reflected. For details and a more general new
development-oriented method, see
[nvim-example-python-plugin](https://github.com/jacobsimpson/nvim-example-python-plugin)

## Screenshots

Simple message text message under the status bar.

![alt text](https://raw.githubusercontent.com/semanser/vim-outdated-plugins/master/images/outdated.png)
![alt text](https://raw.githubusercontent.com/semanser/vim-outdated-plugins/master/images/updated.png)

### OS

- [x] macOS
- [x] Linux
- [ ] Windows

### Plugin Managers:
- [x] vim-plug
- [ ] Vundle
- [ ] Pathogen
- [ ] dein.vim
- [ ] NeoBundle
- [ ] VAM

### Notificatation methods
- [x] Basic echo
- [ ] Status line variable

- [x] vim-plug
- [ ] Vundle
- [ ] Pathogen
- [ ] dein.vim
- [ ] NeoBundle
- [ ] VAM

### Notificatation methods

- [x] Basic echo
- [ ] Status line variable
Loading