From bbb209135e53eaaf6c783438212d866bb1f8795f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jalil=20David=20Salam=C3=A9=20Messina?= Date: Thu, 7 Nov 2024 18:47:04 +0100 Subject: [PATCH] feat(nvim): improve startup time by combining plugins This reduces startup time from ~155ms -> ~66ms --- nvim/dev-plugins.nix | 1 - nvim/plugins.nix | 4 ---- nvim/standalone.nix | 1 + 3 files changed, 1 insertion(+), 5 deletions(-) diff --git a/nvim/dev-plugins.nix b/nvim/dev-plugins.nix index 3d4757b..b29f66b 100644 --- a/nvim/dev-plugins.nix +++ b/nvim/dev-plugins.nix @@ -114,7 +114,6 @@ in extraPackages = [ pkgs.dash pkgs.statix - pkgs.zsh ]; plugins.lint = { enable = true; diff --git a/nvim/plugins.nix b/nvim/plugins.nix index 81bf9c2..a63faaa 100644 --- a/nvim/plugins.nix +++ b/nvim/plugins.nix @@ -85,10 +85,6 @@ in name = "treesitter"; groupIndex = 2; } - { - name = "zsh"; - groupIndex = 1; - } ]; mapping = mkRaw diff --git a/nvim/standalone.nix b/nvim/standalone.nix index 2066375..539f065 100644 --- a/nvim/standalone.nix +++ b/nvim/standalone.nix @@ -49,6 +49,7 @@ # Enable local configuration :h 'exrc' exrc = true; # safe since nvim 0.9 }; + performance.combinePlugins.enable = true; extraPlugins = let plugins = pkgs.vimPlugins;