Skip to content

Commit

Permalink
feat(auto-follow): use fzakaria's auto-follow
Browse files Browse the repository at this point in the history
I am tired of .follows...
  • Loading branch information
xav-ie committed Dec 29, 2024
1 parent 476693e commit 0c69860
Show file tree
Hide file tree
Showing 5 changed files with 61 additions and 25 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ jobs:
- uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
- run: nix flake check
- run: nix flake check --no-write-lock-file
7 changes: 5 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
build:
nix run nixpkgs#nix-output-monitor -- build
nix run nixpkgs#nix-output-monitor -- build --no-write-lock-file

check:
nix flake check
nix flake check --no-write-lock-file

format:
nix fmt

update:
nix flake update && nix run github:fzakaria/nix-auto-follow -- -i
2 changes: 1 addition & 1 deletion config/plugins/treesitter.nix
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
# indent based on ast
indent.enable = true;
highlight.enable = true;
# this is SO useful
# this is SO useful
incremental_selection = {
enable = true;
keymaps = {
Expand Down
64 changes: 52 additions & 12 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 2 additions & 9 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,9 @@

inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";

flake-parts.url = "github:hercules-ci/flake-parts";
flake-parts.inputs.nixpkgs-lib.follows = "nixpkgs";

# neovim-nightly-overlay.url = "github:nix-community/neovim-nightly-overlay";
# neovim-nightly-overlay.inputs.nixpkgs.follows = "nixpkgs";
# neovim-nightly-overlay.inputs.flake-parts.follows = "flake-parts";

nixvim.url = "github:nix-community/nixvim";
nixvim.inputs.nixpkgs.follows = "nixpkgs";
nixvim.inputs.flake-parts.follows = "flake-parts";
# neovim-nightly-overlay.url = "github:nix-community/neovim-nightly-overlay";

# vendored
coq-lsp.url = "github:tomtomjhj/coq-lsp.nvim";
Expand Down Expand Up @@ -89,6 +81,7 @@
checks = {
# Run `nix flake check .` to verify that your config is not broken
default = nixvimLib.check.mkTestDerivationFromNixvimModule nixvimModule;
# TODO: add `nix run github:fzakaria/nix-auto-follow -- -c`
};

formatter = pkgs.nixfmt-rfc-style;
Expand Down

0 comments on commit 0c69860

Please sign in to comment.