Compare commits

..

5 Commits

Author SHA1 Message Date
Thomas Schönauer
8cfc8d66be v10.3.1 patch (#342) 2023-01-30 21:24:06 +00:00
edi
9dcc8fdd0d (neo)vim: topgrade should only invoke plugin managers not plugins (#341)
* fix upgrade order of (n)vim plugins

* treesitter should use the synchronous cmd

* add lazy pkg manager for neovim

* fix lazy cmd

* change calls

* add autocmd, remove ts and coc

* fix vimscript err invalid range

---------

Co-authored-by: Thomas Schönauer <37108907+DottoDev@users.noreply.github.com>
2023-01-30 18:42:13 +00:00
Thomas Schönauer
828477b255 Update README.md 2023-01-30 18:41:48 +00:00
arctic-penguin
4eae1fedf7 fix ignored config display_preamble = false (#340)
Bug was introduced in f1e4009. Fixes #337.
2023-01-30 18:41:00 +00:00
Thomas Schönauer
1051e4cf47 AM fix + version bump (#335) 2023-01-29 21:53:26 +00:00
6 changed files with 9 additions and 23 deletions

2
Cargo.lock generated
View File

@@ -2049,7 +2049,7 @@ dependencies = [
[[package]]
name = "topgrade"
version = "10.2.5"
version = "10.3.1"
dependencies = [
"cfg-if",
"chrono",

View File

@@ -6,7 +6,7 @@ keywords = ["upgrade", "update"]
license = "GPL-3.0"
# license-file = "LICENSE"
repository = "https://github.com/topgrade-rs/topgrade"
version = "10.2.5"
version = "10.3.1"
authors = ["Roey Darwish Dror <roey.ghost@gmail.com>", "Thomas Schönauer <t.schoenauer@hgs-wt.at>"]
exclude = ["doc/screenshot.gif"]
edition = "2021"

View File

@@ -80,8 +80,6 @@ Just fork the repository and start coding.
- Check if your code passes `cargo fmt` and `cargo clippy`.
- Check if your code is self explanatory, if not it should be documented by comments.
- Make a pull request to the `dev` branch for new features or to the `bug-fixes` branch for bug fixes.
## Roadmap
- [ ] Add a proper testing framework to the code base.

View File

@@ -86,7 +86,7 @@ fn run() -> Result<()> {
debug!("Binary path: {:?}", std::env::current_exe());
debug!("Self Update: {:?}", cfg!(feature = "self-update"));
if config.display_preamble() || !config.skip_notify() {
if config.display_preamble() && !config.skip_notify() {
print_warning("Due to a design issue with notify-send it could be that topgrade hangs when it's finished.
If this is the case on your system add the --skip-notify flag to the topgrade command or set skip_notify = true in the config file.
If you don't want this message to appear any longer set display_preamble = false in the config file.

View File

@@ -436,8 +436,9 @@ fn upgrade_solus(ctx: &ExecutionContext) -> Result<()> {
}
pub fn update_am(ctx: &ExecutionContext) -> Result<()> {
let am = require("am")?;
if let Some(sudo) = ctx.sudo() {
ctx.run_type().execute(sudo).args(["am", "-u"]).status_checked()?;
ctx.run_type().execute(sudo).arg(am).arg("-u").status_checked()?;
} else {
print_warning("No sudo detected. Skipping AM Step");
}

View File

@@ -35,27 +35,14 @@ endif
if exists(":Lazy")
echo "Lazy Update"
+Lazy! sync
autocmd User LazySync * quitall
Lazy sync
endif
function! UpdateCoCAndTS()
if exists(":CocUpdateSync")
echo "CocUpdateSync"
CocUpdateSync
endif
if exists(":TSUpdateSync")
echo "TreeSitter Update"
TSUpdate
endif
quitall
endfunction
if exists(':PackerSync')
echo "Packer"
autocmd User PackerComplete * call UpdateCoCAndTS()
autocmd User PackerComplete quitall
PackerSync
else
call UpdateCoCAndTS()
quitall
endif