about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorDavid Morgan <djm_uk@protonmail.com>2022-11-14 16:35:21 +0000
committerDavid Morgan <djm_uk@protonmail.com>2022-11-14 16:35:21 +0000
commit1fcff744b70c0d655bc501c0f82caa75c0a66b30 (patch)
tree6a92646903f11552c63cd41c9b8bd2cde26d7f2a
parentfb46fc7654bfa25a77c7a0bd60f137a4017d806f (diff)
downloaddotfiles-1fcff744b70c0d655bc501c0f82caa75c0a66b30.tar.gz
Simple vim config
-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;
+    };
+  };
 }