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

View file

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

View file

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