Skip to content

Commit

Permalink
perf(neovim): remove builtin plugins completely
Browse files Browse the repository at this point in the history
  • Loading branch information
natsukium committed Jan 14, 2025
1 parent d4199dc commit ebcef6e
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions pkgs/neovim-with-config/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,14 @@ let
"zipPlugin.vim"
];

neovim-unwrapped' = neovim-unwrapped.overrideAttrs (oldAttrs: {
postInstall =
(oldAttrs.postInstall or "")
+ ''
rm ${lib.concatStringsSep " " disabledBuiltinPluginPaths}
'';
});

language-servers = [
# astro
astro-language-server
Expand Down Expand Up @@ -120,14 +128,7 @@ let

};
in
(wrapNeovimUnstable neovim-unwrapped (
(wrapNeovimUnstable neovim-unwrapped' (
# if wrapperArgs is defined directly in config, it will somehow be overwritten
config // { wrapperArgs = config.wrapperArgs ++ extraWrapperArgs; }
)).overrideAttrs
(oldAttrs: {
postInstall =
(oldAttrs.postInstall or "")
+ ''
echo ${lib.concatStringsSep " " disabledBuiltinPluginPaths} | xargs rm
'';
})
))

0 comments on commit ebcef6e

Please sign in to comment.