aboutsummaryrefslogtreecommitdiffstats
path: root/modules/by-name/nv
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2025-06-24 13:27:18 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2025-06-24 13:27:18 +0200
commitaca874ff6c58e65c49e536e6c13770d10988a816 (patch)
tree35737931cc4dc08f7282f2d91f84acf9bf2dc66b /modules/by-name/nv
parentmodules/nvim/plgs: Auto-load (diff)
downloadnixos-config-aca874ff6c58e65c49e536e6c13770d10988a816.zip
modules/nvim/performance: Init
It might make things faster?
Diffstat (limited to 'modules/by-name/nv')
-rw-r--r--modules/by-name/nv/nvim/module.nix1
-rw-r--r--modules/by-name/nv/nvim/performance/default.nix24
2 files changed, 25 insertions, 0 deletions
diff --git a/modules/by-name/nv/nvim/module.nix b/modules/by-name/nv/nvim/module.nix
index 817fda70..9b44906a 100644
--- a/modules/by-name/nv/nvim/module.nix
+++ b/modules/by-name/nv/nvim/module.nix
@@ -29,6 +29,7 @@ in {
./clipboard
./mappings
./options
+ ./performance
]
++ plgs;
diff --git a/modules/by-name/nv/nvim/performance/default.nix b/modules/by-name/nv/nvim/performance/default.nix
new file mode 100644
index 00000000..a392a672
--- /dev/null
+++ b/modules/by-name/nv/nvim/performance/default.nix
@@ -0,0 +1,24 @@
+{
+ config,
+ lib,
+ ...
+}: let
+ cfg = config.soispha.programs.nvim;
+in {
+ home-manager.users.soispha.programs.nixvim = lib.mkIf cfg.enable {
+ performance = {
+ combinePlugins = {
+ enable = true;
+ };
+
+ byteCompileLua = {
+ enable = true;
+ configs = true;
+ initLua = true;
+ luaLib = true;
+ nvimRuntime = true;
+ plugins = true;
+ };
+ };
+ };
+}