2024-01-16 12:37:50 +01:00
|
|
|
{ config, lib, pkgs, inputs, ... }:
|
2022-07-15 13:11:54 +02:00
|
|
|
|
|
|
|
let
|
2024-06-17 09:59:39 +02:00
|
|
|
inherit (lib) mkEnableOption mkIf readFile;
|
2024-06-30 18:46:10 +02:00
|
|
|
|
|
|
|
cfg = config.my.programs.nvim;
|
2022-07-15 13:11:54 +02:00
|
|
|
in
|
|
|
|
{
|
2024-09-14 11:05:12 +02:00
|
|
|
imports = lib.my.listModulesRec ./new_plugins;
|
2023-06-10 21:52:57 +02:00
|
|
|
|
2023-09-17 09:35:10 +02:00
|
|
|
options.my.programs.nvim.enable = mkEnableOption "nvim";
|
2022-07-15 13:11:54 +02:00
|
|
|
|
|
|
|
config = mkIf cfg.enable {
|
2024-02-12 10:10:32 +01:00
|
|
|
home-manager.users.moritz = {
|
2024-02-10 18:22:09 +01:00
|
|
|
|
2024-06-27 10:12:38 +02:00
|
|
|
home.packages = with pkgs; [
|
2024-06-30 18:46:10 +02:00
|
|
|
xdotool # for vimtex
|
2024-06-27 10:12:38 +02:00
|
|
|
];
|
|
|
|
|
2024-09-14 11:05:12 +02:00
|
|
|
programs.nixvim = {
|
|
|
|
enable = true;
|
|
|
|
package = inputs.neovim-nightly-overlay.packages.${pkgs.system}.default;
|
|
|
|
vimAlias = true;
|
|
|
|
extraConfigLuaPre = readFile ./options.lua;
|
2024-10-17 13:04:11 +02:00
|
|
|
luaLoader.enable = true;
|
2024-09-14 11:05:12 +02:00
|
|
|
performance = {
|
|
|
|
byteCompileLua = {
|
2024-09-01 22:05:20 +02:00
|
|
|
enable = true;
|
2024-09-14 11:05:12 +02:00
|
|
|
configs = true;
|
|
|
|
initLua = true;
|
|
|
|
nvimRuntime = true;
|
|
|
|
plugins = true;
|
2024-08-31 10:14:44 +02:00
|
|
|
};
|
2024-09-14 11:05:12 +02:00
|
|
|
combinePlugins.enable = true;
|
|
|
|
};
|
|
|
|
};
|
2022-07-15 13:11:54 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|