Skip to content

Commit

Permalink
neovim: switch to my neovim-config flake
Browse files Browse the repository at this point in the history
  • Loading branch information
LorenzBischof committed Jan 23, 2025
1 parent 2fbbed0 commit 99c748d
Show file tree
Hide file tree
Showing 10 changed files with 120 additions and 430 deletions.
285 changes: 112 additions & 173 deletions flake.lock

Large diffs are not rendered by default.

23 changes: 6 additions & 17 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@
url = "github:numtide/treefmt-nix";
inputs.nixpkgs.follows = "nixpkgs";
};
nixvim = {
url = "github:nix-community/nixvim";
neovim-config = {
url = "github:LorenzBischof/neovim-config";
inputs.nixpkgs.follows = "nixpkgs";
};
};
Expand All @@ -59,7 +59,7 @@
numen,
nixos-generators,
treefmt-nix,
nixvim,
neovim-config,
...
}@inputs:
let
Expand All @@ -77,6 +77,9 @@
"dotnet-sdk-wrapped-6.0.428"
];
};
overlays = [
neovim-config.overlays.default
];
};
treefmtEval = treefmt-nix.lib.evalModule pkgs ./treefmt.nix;
in
Expand Down Expand Up @@ -194,20 +197,6 @@
};
format = "install-iso";
};
nvim =
let
nixvimLib = nixvim.lib.${system};
nixvim' = nixvim.legacyPackages.${system};
nixvimModule = {
inherit pkgs;
module = import ./nvim;
extraSpecialArgs = {
inherit self inputs;
};
};
nvim = nixvim'.makeNixvimWithModule nixvimModule;
in
nvim;
};
formatter.${system} = treefmtEval.config.build.wrapper;
checks.${system} = {
Expand Down
2 changes: 0 additions & 2 deletions hosts/laptop/home.nix
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,7 @@
# fonts
font-awesome
nerd-fonts.dejavu-sans-mono
self.packages.${pkgs.system}.nvim
];
home.sessionVariables.EDITOR = "nvim";

systemd.user.startServices = true;
gtk = {
Expand Down
5 changes: 0 additions & 5 deletions hosts/wsl/home.nix
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ in
services.ssh-agent.enable = true;

home = {
sessionVariables.EDITOR = "nvim";
packages = with pkgs; [
golangci-lint
kubectl
Expand All @@ -94,10 +93,6 @@ in
docker-compose
awscli2
open-policy-agent

(self.packages.${pkgs.system}.nvim.extend {
plugins.avante.enable = false;
})
];
# Home Manager needs a bit of information about you and the paths it should
# manage.
Expand Down
2 changes: 2 additions & 0 deletions modules/home-manager/shell/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
kubectl
ripgrep
dtrx
nvim-pkg
];
programs = {
direnv = {
Expand Down Expand Up @@ -65,6 +66,7 @@
};
};

home.sessionVariables.EDITOR = "nvim";
home.file = {
".zshrc-extra".source = ./initextra;
};
Expand Down
11 changes: 0 additions & 11 deletions nvim/avante.nix

This file was deleted.

55 changes: 0 additions & 55 deletions nvim/completion.nix

This file was deleted.

80 changes: 0 additions & 80 deletions nvim/default.nix

This file was deleted.

58 changes: 0 additions & 58 deletions nvim/lsp.nix

This file was deleted.

29 changes: 0 additions & 29 deletions nvim/telescope.nix

This file was deleted.

0 comments on commit 99c748d

Please sign in to comment.