Repository navigation
Releases: rootiest/nvim-updater.nvim
Release list
v2.2.5 termopen() Deprecation
This release addresses the deprecation of vim.fn.termopen, preferring instead vim.fn.jobstart.
NOTES:
In my testing this change seems to work well even on older nvim versions but if you find otherwise please create an Issue and let me know!
I can, if necessary, implement a version check and fallback on the deprecated api function for older versions but in the interest of simplicity/efficiency I'd rather not do so unless it is needed.
v2.2.0 Bugfixes and outputs
What's Changed
Bug Fixes
- Fixes branch handling and introduces better error handling for that option.
- Addresses build directory permissions more gracefully.
- Fixed a mistake in the docs regarding the show_new_commits function.
Features
- Adds an output variable in the floating terminal callback: This allows you to retrieve the output from the floating terminal.
- Adds an enter_insert option to allow the terminal window to be opened in insert mode.
- Implements an option to always remove the build dir before performing an update: This helps addres the permissions issue mentioned above.
Full Changelog: v2.1.0...v2.2.0
Update Workflow Improvements
Update workflow
- When update fails, prompt user to remove the build dir and retry the update.
Improve update count tracking
- Reset count to "?" when update fails or source dir is removed.
- Don't set count to 0 until after update succeeds.
What's Changed
- V2.0.0 Terminal Callbacks by @rootiest in #9
- V2.1.0 Update Workflow Improvements by @rootiest in #10
Full Changelog: v2.0.0...v2.1.0
v2.0.0 Terminal Callbacks
Floating Terminal Window Callbacks
This is a major update that streamlines the approach to handling closing windows and triggering behavior after the window has closed.
This functionality is most clearly presented when opening the changelog with the intention of triggering an update prompt afterwards. Previously this behavior was achieved by a hacky use of an ispreupdate option. This was hard-coded for that particular scenario and was prone to bugginess.
The ispreupdate option is now deprecated and will be removed at some point in the future.
The callback function option allows us to provide a function to be executed when the window closes. That function is also passed some data about the window including the process exit code.
In a future update I intend to also pass the buffer contents (terminal stdout) to the callback as well.
This will allow more advanced features like a changelog UI that isn't just a basic terminal output buffer.
v1.7.5 Improved Startup Speed
Signficantly improved startup time with async update-checker
v1.7.0 Dynamic Resizing and Repositioning
Features:
- Floating windows now resize and re-center dynamically when the main viewport is resized.
Fixes:
- Healthchecks now use standard format for consistency with other neovim plugins.
v1.6.5 Documentation Fixes
What's Changed
- fix(docs): fix namespace in show_new_commits_in_diffview example by @rootiest in #5
- V1.6.5 Documentation Fixes by @rootiest in #6
Full Changelog: v1.6.0...v1.6.5
v1.6.0 Bugfix Release
Quickfix: fix an insertmode regression in updater function
- Corrects a regression where the
update_neovim()function fails to enter insertmode on opening.
Full Changelog: v1.5.0...v1.5.1
v1.5.0 Features and polish
🎉 Introduces many new features and options!
See :h nvim-updater or the README for details.
Some highlights:
- Update notification system: Optionally generate notifications when new commits are available.
- Improved keymapping and
<Plug>: Provides a more streamlined and easier approach to creating keymaps. shortcommit messages:show_new_commits()can now be displayed using short-format commit messages- Lua function polish: All of the Lua functions can now accept parameters as a table in addition to the traditional syntax
- Terminal view polish: Floating terminals can now have a unique filetype and should properly enter/stay in insert mode.
Moving forward, development will be performed on a development branch matching its release version.
Updates will be pushed to main only when a release is completed.
This v1.5.0 release should be fairly stable.
🐞 Please report any bugs or issues you encounter! 🐛