all repos — nixfiles @ 8b1c919f5e624ee126fdbdaa0bb08583beb0a94e

System and user configuration, managed by nix and home-manager

Add neovim fallback editor
Alan Pearce alan@alanpearce.eu
Thu, 07 May 2020 18:37:19 +0200
commit

8b1c919f5e624ee126fdbdaa0bb08583beb0a94e

parent

39a3b2cbe381dc01a63fa144e8d0a2f5d7be6c08

1 files changed, 20 insertions(+), 1 deletions(-)

jump to
M user/settings/base.nixuser/settings/base.nix
@@ -6,6 +6,26 @@ programs.home-manager.enable = true;   manual = {
     html.enable = true;
   };
+  programs.neovim = {
+    enable = true;
+    vimAlias = true;
+    configure = {
+      customRC = ''
+        set autoindent
+
+        set background=light
+        set shiftwidth=2
+        set tabstop=2
+        set noexpandtab
+        set relativenumber
+        set smartcase
+      '';
+      packages.myVimPackage = with pkgs.vimPlugins; {
+        start = [ vim-nix ];
+        opt = [ ];
+      };
+    };
+  };
   home.sessionVariables.EMAIL = "alan@alanpearce.eu";
   home.packages = with pkgs; [
     pv
@@ -26,7 +46,6 @@ telnet   ] ++ (
   if !stdenv.isDarwin
   then [
-    vim
     unar
   ] else [
   ]);