problem: conflict with neovim[DONE]

Sometimes(always, xu) when we install a new application via pacman or yay/paru, the new will conflict with another one especially on ARCH or SUSE and others distributions with rolling update.

Such as, oh-my-posh conflict with neovim(it’s plugin(s) actually)

Here is the approach to solve this tricky problem.

STEP1

Clean the cache of your package, primarily clean the conflict one, or, clean all.

1
2
3
4
5
6
7
8
9
yay -Sc (clean all cache of yay)
rm -rf ~/.cache/yay/* (clean all cache by yourself, but be careful)

(To just remove cache of neovim, remove: ~/.cacehe/yay/neovim/*)

yay -Sc --clean (clean cache files you haven't use)

yay -Yc (clean the packages that without dependence)

STEP2

Reinstall the neovim

1
2
3
4
5
6
7
sudo pacman -R neovim
sudo pacman -S neovim

or(clean all dependence)

sudo pacman -Rn neovim
sudo pacman -S neovim

(STEP3)

If still stuck, reinstall the LAZY.

1
rm -rf ~/.local/share/nvim/lazy/lazy.nvim

update in 2024/11/24

play with arch homepage

click here to come back to play with arch
homepage.