mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-09-06 02:11:33 +00:00
utility/undotree: removed unimportant boilerplate
This commit is contained in:
parent
b7b442737a
commit
81d566ac39
5 changed files with 20 additions and 20 deletions
|
@ -26,5 +26,6 @@
|
|||
./wakatime
|
||||
./yanky-nvim
|
||||
./yazi-nvim
|
||||
./undotree
|
||||
];
|
||||
}
|
||||
|
|
6
modules/plugins/utility/undotree/config.nix
Normal file
6
modules/plugins/utility/undotree/config.nix
Normal file
|
@ -0,0 +1,6 @@
|
|||
{ ... }:
|
||||
{
|
||||
vim.lazy.plugins.undotree = {
|
||||
cmd = [ "UndotreeToggle" ];
|
||||
};
|
||||
}
|
6
modules/plugins/utility/undotree/default.nix
Normal file
6
modules/plugins/utility/undotree/default.nix
Normal file
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
imports = [
|
||||
./undotree.nix
|
||||
./config.nix
|
||||
];
|
||||
}
|
|
@ -1,25 +1,9 @@
|
|||
{ lib, ... }:
|
||||
let
|
||||
inherit (lib.types) bool int;
|
||||
inherit (lib.options) mkEnableOption mkOption;
|
||||
|
||||
inherit (lib.nvim.types) mkPluginSetupOption;
|
||||
inherit (lib.options) mkEnableOption;
|
||||
in
|
||||
{
|
||||
options.vim.undotree = {
|
||||
enable = mkEnableOption "undotree";
|
||||
setupOpts = mkPluginSetupOption "undotree" {
|
||||
# enable_feature_a = mkOption {
|
||||
# type = bool;
|
||||
# default = false;
|
||||
# # ...
|
||||
# };
|
||||
#
|
||||
# number_option = mkOption {
|
||||
# type = int;
|
||||
# default = 3;
|
||||
# # ...
|
||||
# };
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue