mirror of
https://github.com/ItsDrike/nixdots
synced 2024-12-25 16:04:35 +00:00
Add neovim
This commit is contained in:
parent
329f48882e
commit
70be05057b
|
@ -2,5 +2,6 @@ _: {
|
|||
imports = [
|
||||
./shell
|
||||
./tools
|
||||
./editors
|
||||
];
|
||||
}
|
||||
|
|
6
home/programs/terminal/editors/default.nix
Normal file
6
home/programs/terminal/editors/default.nix
Normal file
|
@ -0,0 +1,6 @@
|
|||
_: {
|
||||
imports = [
|
||||
./neovim
|
||||
];
|
||||
}
|
||||
|
34
home/programs/terminal/editors/neovim/default.nix
Normal file
34
home/programs/terminal/editors/neovim/default.nix
Normal 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;
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue