Add an nvim
package
Now I can run `nix run .#nvim` to run Neovim with any configuration changes without having to rebuild my whole NixOS configuration.
This commit is contained in:
parent
e65f3e42a5
commit
a068e0481f
3 changed files with 71 additions and 59 deletions
|
@ -42,6 +42,12 @@
|
|||
};
|
||||
|
||||
inherit (pkgs) mkShell;
|
||||
|
||||
neovimWithConfig = inputs.nixvim.legacyPackages.${system}.makeNixvimWithModule {
|
||||
inherit pkgs;
|
||||
|
||||
module = import ./modules/home-manager/coding/neovim/nixvim.nix;
|
||||
};
|
||||
in
|
||||
{
|
||||
devShells.${system}.default = pkgs.mkShell {
|
||||
|
@ -55,6 +61,8 @@
|
|||
|
||||
packages.${system} = {
|
||||
default = mkShell { buildInputs = with pkgs; [ just ]; };
|
||||
|
||||
nvim = neovimWithConfig;
|
||||
};
|
||||
|
||||
formatter.${system} = pkgs.nixfmt-rfc-style;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue