home: Move neovim config to subdir

This commit is contained in:
Alexander Kobjolke 2024-01-30 22:58:16 +01:00
parent e607d83f49
commit dbe14a7d9a
2 changed files with 21 additions and 6 deletions

View file

@ -0,0 +1,20 @@
{ config, lib, pkgs, ... }:
{
programs.neovim = {
enable = true;
vimAlias = true;
extraConfig = ''
set nowrap
'';
plugins = with pkgs.vimPlugins; [
vim-nix
indentLine
indent-blankline-nvim
neoformat
];
};
}

View file

@ -10,10 +10,7 @@ let
myEza = if builtins.hasAttr "eza" pkgs then "eza" else "exa";
in {
imports = [
# shell config
#./modules/shell
];
imports = [ ./alex/programs/neovim/default.nix ];
programs.home-manager.enable = true;
home = {
@ -182,8 +179,6 @@ in {
ssh.enable = true;
neovim = import ./modules/nvim.nix pkgs;
texlive.enable = true;
};