neovim config

This commit is contained in:
2024-04-08 18:53:37 +02:00
parent b0f13c07ed
commit f17af995a2
3 changed files with 55 additions and 44 deletions

11
apps/neovim.nix Normal file
View File

@@ -0,0 +1,11 @@
{ unstable, ... }: {
programs.neovim = {
enable = true;
viAlias = true;
vimAlias = true;
vimdiffAlias = true;
defaultEditor = true;
};
}

View File

@@ -1,4 +1,4 @@
{ config, pkgs, ... }:
{ config, pkgs, pkgs-unstable, ... }:
let
myAliases = {
".." = "cd ..";
@@ -53,9 +53,14 @@ in {
# release notes.
home.stateVersion = "23.11"; # Please read the comment before changing.
imports = [
./apps/neovim.nix
];
# The home.packages option allows you to install Nix packages into your
# environment.
home.packages = with pkgs; [
home.packages =
(with pkgs; [
# zsh stuff
zsh
zsh-autosuggestions
@@ -91,7 +96,14 @@ in {
steam
# custom
];
])
++
(with pkgs-unstable; [
# I need fresssh stuff
neovim
]);
# Home Manager is pretty good at managing dotfiles. The primary way to manage
# plain files is through 'home.file'.
@@ -112,16 +124,6 @@ in {
EDITOR = "nvim";
};
#programs.neovim = {
# enable = true;
#
# viAlias = true;
# vimAlias = true;
# vimdiffAlias = true;
#
# defaultEditor = true;
# };
programs.bash = {
enable = true;
shellAliases = myAliases;

View File

@@ -163,8 +163,6 @@
++
(with pkgs-unstable; [
neovim
cmake
gcc
clang