mirror of
https://github.com/eRgo35/nix-config.git
synced 2026-02-04 08:46:11 +01:00
neovim config
This commit is contained in:
11
apps/neovim.nix
Normal file
11
apps/neovim.nix
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
{ unstable, ... }: {
|
||||||
|
programs.neovim = {
|
||||||
|
enable = true;
|
||||||
|
|
||||||
|
viAlias = true;
|
||||||
|
vimAlias = true;
|
||||||
|
vimdiffAlias = true;
|
||||||
|
|
||||||
|
defaultEditor = true;
|
||||||
|
};
|
||||||
|
}
|
||||||
28
home.nix
28
home.nix
@@ -1,4 +1,4 @@
|
|||||||
{ config, pkgs, ... }:
|
{ config, pkgs, pkgs-unstable, ... }:
|
||||||
let
|
let
|
||||||
myAliases = {
|
myAliases = {
|
||||||
".." = "cd ..";
|
".." = "cd ..";
|
||||||
@@ -53,9 +53,14 @@ in {
|
|||||||
# release notes.
|
# release notes.
|
||||||
home.stateVersion = "23.11"; # Please read the comment before changing.
|
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
|
# The home.packages option allows you to install Nix packages into your
|
||||||
# environment.
|
# environment.
|
||||||
home.packages = with pkgs; [
|
home.packages =
|
||||||
|
(with pkgs; [
|
||||||
# zsh stuff
|
# zsh stuff
|
||||||
zsh
|
zsh
|
||||||
zsh-autosuggestions
|
zsh-autosuggestions
|
||||||
@@ -91,7 +96,14 @@ in {
|
|||||||
steam
|
steam
|
||||||
|
|
||||||
# custom
|
# custom
|
||||||
];
|
])
|
||||||
|
|
||||||
|
++
|
||||||
|
|
||||||
|
(with pkgs-unstable; [
|
||||||
|
# I need fresssh stuff
|
||||||
|
neovim
|
||||||
|
]);
|
||||||
|
|
||||||
# Home Manager is pretty good at managing dotfiles. The primary way to manage
|
# Home Manager is pretty good at managing dotfiles. The primary way to manage
|
||||||
# plain files is through 'home.file'.
|
# plain files is through 'home.file'.
|
||||||
@@ -112,16 +124,6 @@ in {
|
|||||||
EDITOR = "nvim";
|
EDITOR = "nvim";
|
||||||
};
|
};
|
||||||
|
|
||||||
#programs.neovim = {
|
|
||||||
# enable = true;
|
|
||||||
#
|
|
||||||
# viAlias = true;
|
|
||||||
# vimAlias = true;
|
|
||||||
# vimdiffAlias = true;
|
|
||||||
#
|
|
||||||
# defaultEditor = true;
|
|
||||||
# };
|
|
||||||
|
|
||||||
programs.bash = {
|
programs.bash = {
|
||||||
enable = true;
|
enable = true;
|
||||||
shellAliases = myAliases;
|
shellAliases = myAliases;
|
||||||
|
|||||||
@@ -163,8 +163,6 @@
|
|||||||
++
|
++
|
||||||
|
|
||||||
(with pkgs-unstable; [
|
(with pkgs-unstable; [
|
||||||
neovim
|
|
||||||
|
|
||||||
cmake
|
cmake
|
||||||
gcc
|
gcc
|
||||||
clang
|
clang
|
||||||
|
|||||||
Reference in New Issue
Block a user