about summary refs log tree commit diff
path: root/modules/darwin/vim
diff options
context:
space:
mode:
authorAzat Bahawi <azat@bahawi.net>2024-03-31 21:29:27 +0300
committerAzat Bahawi <azat@bahawi.net>2024-03-31 21:29:27 +0300
commit9a5427e3a0c0ccf2a82dc503149a26b23fbd6004 (patch)
treef28beec29deeea36038615a8fb98a810891940b5 /modules/darwin/vim
parent2024-03-19 (diff)
2024-03-31
Diffstat (limited to 'modules/darwin/vim')
-rw-r--r--modules/darwin/vim/default.nix47
1 files changed, 27 insertions, 20 deletions
diff --git a/modules/darwin/vim/default.nix b/modules/darwin/vim/default.nix
index e0a6898..4c3f7e1 100644
--- a/modules/darwin/vim/default.nix
+++ b/modules/darwin/vim/default.nix
@@ -4,28 +4,35 @@
   pkgs,
   ...
 }:
-with lib; let
+with lib;
+let
   cfg = config.nixfiles.modules.vim;
-in {
+in
+{
   config = mkIf cfg.enable {
     programs.vim.package =
-      (pkgs.macvim.overrideAttrs (_: _: {
-        # Too much of a hassle to selectively override this. Let's just
-        # explicitly override everything.
-        configureFlags = [
-          "--disable-luainterp"
-          "--disable-python3interp"
-          "--disable-sparkle"
-          "--enable-gui=macvim"
-          "--with-compiledby=Nix"
-          "--with-features=huge"
-          "--with-tlib=ncurses"
-          "--without-local-dir"
-        ];
-      }))
-      .configure (with cfg; {
-        customRC = rc;
-        packages.myVimPackage.start = plugins;
-      });
+      (pkgs.macvim.overrideAttrs (
+        _: _: {
+          # Too much of a hassle to selectively override this. Let's just
+          # explicitly override everything.
+          configureFlags = [
+            "--disable-luainterp"
+            "--disable-python3interp"
+            "--disable-sparkle"
+            "--enable-gui=macvim"
+            "--with-compiledby=Nix"
+            "--with-features=huge"
+            "--with-tlib=ncurses"
+            "--without-local-dir"
+          ];
+        }
+      )).configure
+        (
+          with cfg;
+          {
+            customRC = rc;
+            packages.myVimPackage.start = plugins;
+          }
+        );
   };
 }

Consider giving Nix/NixOS a try! <3