This commit is contained in:
joygnu 2024-07-03 22:28:11 +02:00
parent 71a3f65932
commit a639fd0738
3 changed files with 10 additions and 15 deletions

View file

@ -18,24 +18,16 @@
home.stateVersion = "23.11"; home.stateVersion = "23.11";
programs.home-manager.enable = true; programs.home-manager.enable = true;
home.sessionVariables = { home.sessionVariables = {
EDITOR = "vim"; EDITOR = "nvim";
};
programs.neovim = {
enable = true;
extraConfig = ''
set number relativenumber
'';
}; };
programs.neovim.plugins = [
pkgs.vimPlugins.nvim-tree-lua
{ # basically copy the whole nvchad that is fetched from github to ~/.config/nvim
plugin = pkgs.vimPlugins.vim-startify; xdg.configFile."nvim/" = {
config = "let g:startify_change_to_vcs_root = 0"; source = (pkgs.callPackage ./nvchad/default.nix{}).nvchad;
} };
];
colorScheme = inputs.nix-colors.colorSchemes.gruvbox-dark-medium; colorScheme = inputs.nix-colors.colorSchemes.gruvbox-dark-medium;

View file

@ -1,4 +1,4 @@
{ stdenv, pkgs, fetchFromGithub }: { stdenv, pkgs, fetchFromGithub, ... }:
{ {
nvchad = stdenv.mkDerivation rec { nvchad = stdenv.mkDerivation rec {
@ -20,3 +20,4 @@ nvchad = stdenv.mkDerivation rec {
''; '';
}; };
} }

View file

@ -54,5 +54,7 @@
yt-dlp yt-dlp
boxbuddy boxbuddy
distrobox distrobox
neovim
stdenv.mkDerivation
]; ];
} }