chore: update nvim-silicon plugin
Also fix `just update-vim-plugins` as it was broken by the recent refactor.
This commit is contained in:
parent
bd970253f2
commit
3838039cee
2 changed files with 13 additions and 16 deletions
9
justfile
9
justfile
|
@ -13,10 +13,8 @@ run-vm: build-vm
|
|||
|
||||
update-vim-plugins:
|
||||
#!/bin/sh
|
||||
# Use local nixpkgs if available
|
||||
nixpkgs="$HOME/Dev/nixpkgs"
|
||||
plugindir=./modules/nixvim/extraPlugins
|
||||
# copy nixpkgs from local checkout
|
||||
if [ ! -d "$nixpkgs" ]; then
|
||||
nixpkgs="$(mktemp -d)"
|
||||
cp -r /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/. "$nixpkgs"
|
||||
cd "$nixpkgs"
|
||||
|
@ -24,11 +22,10 @@ update-vim-plugins:
|
|||
git add .
|
||||
git commit -m 'dummy commit'
|
||||
cd -
|
||||
fi
|
||||
# update vim plugins
|
||||
nix run nixpkgs#vimPluginsUpdater -- --proc=1 --nixpkgs "$nixpkgs" --no-commit -i ./nvim/extraPlugins/plugins -o ./nvim/extraPlugins/generated.nix update
|
||||
nix run nixpkgs#vimPluginsUpdater -- --proc=1 --nixpkgs "$nixpkgs" --no-commit -i "$plugindir/plugins" -o "$plugindir/generated.nix" update
|
||||
# format the generated output
|
||||
nix fmt ./nvim/extraPlugins/generated.nix
|
||||
nix fmt "$plugindir/generated.nix"
|
||||
|
||||
# Amend Update flake.lock PR
|
||||
flake-pr:
|
||||
|
|
|
@ -10,12 +10,12 @@
|
|||
final: prev: {
|
||||
nvim-silicon = buildVimPlugin {
|
||||
pname = "nvim-silicon";
|
||||
version = "2024-08-31";
|
||||
version = "2025-01-09";
|
||||
src = fetchFromGitHub {
|
||||
owner = "michaelrommel";
|
||||
repo = "nvim-silicon";
|
||||
rev = "9fe6001dc8cad4d9c53bcfc8649e3dc76ffa169c";
|
||||
sha256 = "1qczi06yndkr2pmwidlkgmk0395x189sznvscn4fnr96jx58j5yl";
|
||||
rev = "7f66bda8f60c97a5bf4b37e5b8acb0e829ae3c32";
|
||||
sha256 = "1zk6lgghvdcys20cqvh2g1kjf661q1w97niq5nx1zz4yppy2f9jy";
|
||||
};
|
||||
meta.homepage = "https://github.com/michaelrommel/nvim-silicon/";
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue