Skip to content

Commit

Permalink
performance: enable again
Browse files Browse the repository at this point in the history
Not freezing anymore on profiler and lazy loading seems unaffected.
  • Loading branch information
khaneliman committed Jan 28, 2025
1 parent c48eb5f commit 60798b1
Showing 1 changed file with 4 additions and 13 deletions.
17 changes: 4 additions & 13 deletions modules/nixvim/performance.nix
Original file line number Diff line number Diff line change
@@ -1,19 +1,10 @@
{ config, lib, ... }:
let
snacksPickerEnabled =
config.plugins.snacks.enable
&& lib.hasAttr "profiler" config.plugins.snacks.settings
&& config.plugins.snacks.settings.profiler.enabled;

lazyEnabled = config.plugins.lz-n.enable || config.plugins.lazy.enable;
in
{
performance = {
byteCompileLua = {
enable = !lazyEnabled;
nvimRuntime = !lazyEnabled;
configs = !snacksPickerEnabled;
plugins = !snacksPickerEnabled;
enable = true;
nvimRuntime = true;
configs = true;
plugins = true;
};
};
}

0 comments on commit 60798b1

Please sign in to comment.