Add neovim

This commit is contained in:
ItsDrike 2024-04-04 20:44:12 +02:00
parent 329f48882e
commit 70be05057b
Signed by: ItsDrike
GPG key ID: FA2745890B7048C0
3 changed files with 41 additions and 0 deletions

View file

@ -2,5 +2,6 @@ _: {
imports = [ imports = [
./shell ./shell
./tools ./tools
./editors
]; ];
} }

View file

@ -0,0 +1,6 @@
_: {
imports = [
./neovim
];
}

View file

@ -0,0 +1,34 @@
{pkgs, ...}: {
# TODO: Consider switching to nixvim, this is a temporary solution
programs.neovim = {
enable = true;
viAlias = true;
vimAlias = true;
# Packages required for:
# - Mason to build various language servers / linters / formatters from source
# - Runtime dependencies of plugins / lang servers / ...
withNodeJs = true;
withPython3 = true;
extraPackages = with pkgs; [
go
python3
rustc
cargo
gcc
];
};
# Running `nvim --headless +q` is recommended
# before opening neovim for the first time
home.file."./.config/nvim" = {
source = pkgs.fetchFromGitHub {
owner = "ItsDrike";
repo = "AstroNvimUser";
rev = "v0.1.0";
sha256 = "sha256-2o25+2CHoDS90kDk5ixiQDE4MHybgvVLL7jr7AHWhqU=";
};
recursive = true;
};
}