mirror of
https://github.com/Theaninova/TheaninovOS.git
synced 2025-12-12 11:36:20 +00:00
feat: nixvim refactor
This commit is contained in:
22
modules/home-manager/programs/nixvim/presets/undotree.nix
Normal file
22
modules/home-manager/programs/nixvim/presets/undotree.nix
Normal file
@@ -0,0 +1,22 @@
|
||||
{ lib, config, ... }:
|
||||
let
|
||||
cfg = config.presets.undotree;
|
||||
in
|
||||
{
|
||||
options.presets.undotree = {
|
||||
enable = lib.mkEnableOption "Undotree";
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
opts = {
|
||||
undodir = {
|
||||
__raw = "os.getenv('HOME') .. '/.config/nvim/undodir'";
|
||||
};
|
||||
undofile = true;
|
||||
};
|
||||
plugins = {
|
||||
undotree.enable = true;
|
||||
which-key.registrations."<leader>u" = "Undotree";
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user