about summary refs log tree commit diff stats
path: root/nix-conf/home
diff options
context:
space:
mode:
Diffstat (limited to 'nix-conf/home')
-rw-r--r--nix-conf/home/includes/common.nix35
1 files changed, 34 insertions, 1 deletions
diff --git a/nix-conf/home/includes/common.nix b/nix-conf/home/includes/common.nix
index ee5a73a..7d67b6f 100644
--- a/nix-conf/home/includes/common.nix
+++ b/nix-conf/home/includes/common.nix
@@ -56,7 +56,6 @@ in
     sd
     tealdeer
     ugrep
-    vim
     w3m
   ];
 
@@ -66,5 +65,39 @@ in
     enableZshIntegration = false;
     enableBashIntegration = false;
   };
+
+  programs.vim = {
+    enable = true;
+    extraConfig = ''
+      " molokayo doesn't load properly without this"
+      colorscheme molokai
+      colorscheme molokayo
+      " highlight doesn't work properly without this"
+      syntax enable
+      highlight Normal ctermfg=white ctermbg=black
+      set hlsearch
+      set showmatch
+    '';
+    plugins = [ pkgs.vimPlugins.sensible
+                pkgs.vimPlugins.auto-pairs
+                pkgs.vimPlugins.awesome-vim-colorschemes
+                pkgs.vimPlugins.ctrlp
+                pkgs.vimPlugins.inkpot
+                pkgs.vimPlugins.surround
+                pkgs.vimPlugins.vim-lastplace
+                pkgs.vimPlugins.vim-pasta
+                pkgs.vimPlugins.vim-sleuth
+    ];
+    settings = {
+      background = "dark";
+      copyindent = true;
+      expandtab = true;
+      ignorecase = true;
+      number = true;
+      shiftwidth = 4;
+      smartcase = true;
+      tabstop = 4;
+    };
+  };
 }