chore: add devshell to nvim config

This commit is contained in:
2025-08-26 18:24:15 +05:00
parent e459dc46bf
commit 08213e6838
4 changed files with 54 additions and 12 deletions

39
dotfiles/nvim/flake.nix Normal file
View File

@@ -0,0 +1,39 @@
{
description = "Neovim configuration";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
fenix = {
url = "github:nix-community/fenix";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = { self, nixpkgs, flake-utils, fenix }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = nixpkgs.legacyPackages.${system};
fenixLib = fenix.packages.${system};
rustToolchain = fenixLib.stable.toolchain;
in
{
devShells.default = pkgs.mkShell {
buildInputs = with pkgs; [
lua-language-server
stylua
ripgrep
fd
nodejs_24
python313
rustToolchain
];
shellHook = ''
echo "Neovim development environment"
echo "nvim is configured with your local config"
'';
};
});
}