feat: improve nvim config with nix

This commit is contained in:
Noa Aarts 2024-07-23 21:36:07 +02:00
parent 968ea9e6b7
commit 446dd1ddbd
2 changed files with 31 additions and 17 deletions

View file

@ -1,21 +1,31 @@
{ pkgs, lib, ... }:
{
home.packages = with pkgs; [
# needed for the nvim config, neovim itself is a system package already
ripgrep
programs.neovim =
{
enable = true;
extraPackages = with pkgs; [
ripgrep
luarocks
gnumake
rustc
(python3.withPackages (python-pkgs: [
python-pkgs.pip
]))
wget
julia
gopls
nixpkgs-fmt
lua51Packages.lua
tree-sitter
php83Packages.composer
php83
temurin-jre-bin
fd
];
defaultEditor = true;
viAlias = true;
vimAlias = true;
# TODO: find how I can make this build dependencies only
gnumake
rustc
python3
];
programs.neovim = {
enable = true;
defaultEditor = true;
viAlias = true;
vimAlias = true;
extraLuaConfig = lib.fileContents ./init.lua;
};
extraLuaConfig = lib.fileContents ./init.lua;
};
}