home: Move neovim config to subdir
This commit is contained in:
parent
e607d83f49
commit
dbe14a7d9a
2 changed files with 21 additions and 6 deletions
20
home/alex/programs/neovim/default.nix
Normal file
20
home/alex/programs/neovim/default.nix
Normal 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
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
@ -10,10 +10,7 @@ let
|
||||||
|
|
||||||
myEza = if builtins.hasAttr "eza" pkgs then "eza" else "exa";
|
myEza = if builtins.hasAttr "eza" pkgs then "eza" else "exa";
|
||||||
in {
|
in {
|
||||||
imports = [
|
imports = [ ./alex/programs/neovim/default.nix ];
|
||||||
# shell config
|
|
||||||
#./modules/shell
|
|
||||||
];
|
|
||||||
|
|
||||||
programs.home-manager.enable = true;
|
programs.home-manager.enable = true;
|
||||||
home = {
|
home = {
|
||||||
|
|
@ -182,8 +179,6 @@ in {
|
||||||
|
|
||||||
ssh.enable = true;
|
ssh.enable = true;
|
||||||
|
|
||||||
neovim = import ./modules/nvim.nix pkgs;
|
|
||||||
|
|
||||||
texlive.enable = true;
|
texlive.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue