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
23
justfile
23
justfile
|
@ -13,22 +13,19 @@ run-vm: build-vm
|
||||||
|
|
||||||
update-vim-plugins:
|
update-vim-plugins:
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# Use local nixpkgs if available
|
plugindir=./modules/nixvim/extraPlugins
|
||||||
nixpkgs="$HOME/Dev/nixpkgs"
|
|
||||||
# copy nixpkgs from local checkout
|
# copy nixpkgs from local checkout
|
||||||
if [ ! -d "$nixpkgs" ]; then
|
nixpkgs="$(mktemp -d)"
|
||||||
nixpkgs="$(mktemp -d)"
|
cp -r /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/. "$nixpkgs"
|
||||||
cp -r /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/. "$nixpkgs"
|
cd "$nixpkgs"
|
||||||
cd "$nixpkgs"
|
git init .
|
||||||
git init .
|
git add .
|
||||||
git add .
|
git commit -m 'dummy commit'
|
||||||
git commit -m 'dummy commit'
|
cd -
|
||||||
cd -
|
|
||||||
fi
|
|
||||||
# update vim plugins
|
# 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
|
# format the generated output
|
||||||
nix fmt ./nvim/extraPlugins/generated.nix
|
nix fmt "$plugindir/generated.nix"
|
||||||
|
|
||||||
# Amend Update flake.lock PR
|
# Amend Update flake.lock PR
|
||||||
flake-pr:
|
flake-pr:
|
||||||
|
|
|
@ -10,12 +10,12 @@
|
||||||
final: prev: {
|
final: prev: {
|
||||||
nvim-silicon = buildVimPlugin {
|
nvim-silicon = buildVimPlugin {
|
||||||
pname = "nvim-silicon";
|
pname = "nvim-silicon";
|
||||||
version = "2024-08-31";
|
version = "2025-01-09";
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "michaelrommel";
|
owner = "michaelrommel";
|
||||||
repo = "nvim-silicon";
|
repo = "nvim-silicon";
|
||||||
rev = "9fe6001dc8cad4d9c53bcfc8649e3dc76ffa169c";
|
rev = "7f66bda8f60c97a5bf4b37e5b8acb0e829ae3c32";
|
||||||
sha256 = "1qczi06yndkr2pmwidlkgmk0395x189sznvscn4fnr96jx58j5yl";
|
sha256 = "1zk6lgghvdcys20cqvh2g1kjf661q1w97niq5nx1zz4yppy2f9jy";
|
||||||
};
|
};
|
||||||
meta.homepage = "https://github.com/michaelrommel/nvim-silicon/";
|
meta.homepage = "https://github.com/michaelrommel/nvim-silicon/";
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue