summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2020-05-07 18:37:19 +0200
committerAlan Pearce2020-05-07 18:37:19 +0200
commit8b1c919f5e624ee126fdbdaa0bb08583beb0a94e (patch)
treeab0e26193523025e96fccdfd8efbe38db632079a
parent39a3b2cbe381dc01a63fa144e8d0a2f5d7be6c08 (diff)
downloadnixfiles-8b1c919f5e624ee126fdbdaa0bb08583beb0a94e.tar.lz
nixfiles-8b1c919f5e624ee126fdbdaa0bb08583beb0a94e.tar.zst
nixfiles-8b1c919f5e624ee126fdbdaa0bb08583beb0a94e.zip
Add neovim fallback editor
-rw-r--r--user/settings/base.nix21
1 files changed, 20 insertions, 1 deletions
diff --git a/user/settings/base.nix b/user/settings/base.nix
index 7c187f7a..0d5ba9fd 100644
--- a/user/settings/base.nix
+++ b/user/settings/base.nix
@@ -6,6 +6,26 @@
   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 @@
   ] ++ (
   if !stdenv.isDarwin
   then [
-    vim
     unar
   ] else [
   ]);