mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-09-05 18:01:32 +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
|
@ -43,7 +43,7 @@ isMaximal: {
|
|||
# This section does not include a comprehensive list of available language modules.
|
||||
# To list all available language module options, please visit the nvf manual.
|
||||
languages = {
|
||||
enableFormat = true; #
|
||||
enableFormat = true;
|
||||
enableTreesitter = true;
|
||||
enableExtraDiagnostics = true;
|
||||
|
||||
|
@ -184,6 +184,7 @@ isMaximal: {
|
|||
project-nvim.enable = isMaximal;
|
||||
};
|
||||
|
||||
undotree.enable = isMaximal;
|
||||
utility = {
|
||||
ccc.enable = false;
|
||||
vim-wakatime.enable = false;
|
||||
|
@ -194,7 +195,6 @@ isMaximal: {
|
|||
leetcode-nvim.enable = isMaximal;
|
||||
multicursors.enable = isMaximal;
|
||||
smart-splits.enable = isMaximal;
|
||||
|
||||
motion = {
|
||||
hop.enable = true;
|
||||
leap.enable = true;
|
||||
|
@ -238,7 +238,10 @@ isMaximal: {
|
|||
nix = "110";
|
||||
ruby = "120";
|
||||
java = "130";
|
||||
go = ["90" "130"];
|
||||
go = [
|
||||
"90"
|
||||
"130"
|
||||
];
|
||||
};
|
||||
};
|
||||
fastaction.enable = true;
|
||||
|
|
|
@ -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