docs: fix mkEnableOption usage for autogenerated documentation

This commit is contained in:
NotAShelf 2023-06-05 23:10:25 +03:00
commit a2b58e17af
No known key found for this signature in database
GPG key ID: F0D14CCB5ED5AA22
55 changed files with 225 additions and 333 deletions

View file

@ -6,6 +6,6 @@
with lib;
with builtins; {
options.vim.binds.cheatsheet = {
enable = mkEnableOption "Enable cheatsheet-nvim: searchable cheatsheet for nvim using telescope";
enable = mkEnableOption "cheatsheet-nvim: searchable cheatsheet for nvim using telescope";
};
}

View file

@ -1,11 +1,7 @@
{
config,
lib,
...
}:
{lib, ...}:
with lib;
with builtins; {
options.vim.binds.whichKey = {
enable = mkEnableOption "Enable which-key keybind menu";
enable = mkEnableOption "which-key keybind helper menu";
};
}

View file

@ -2,7 +2,7 @@
with lib;
with builtins; {
options.vim.utility.ccc = {
enable = mkEnableOption "Enable ccc color picker for neovim";
enable = mkEnableOption "ccc color picker for neovim";
mappings = {
quit = mkMappingOption "Cancel and close the UI without replace or insert" "<Esc>";

View file

@ -1,11 +1,7 @@
{
config,
lib,
...
}:
{lib, ...}:
with lib;
with builtins; {
options.vim.utility.diffview-nvim = {
enable = mkEnableOption "Enable diffview-nvim";
enable = mkEnableOption "diffview-nvim: cycle through diffs for all modified files for any git rev";
};
}

View file

@ -1,7 +1,7 @@
{lib, ...}:
with lib; {
options.vim.gestures.gesture-nvim = {
enable = mkEnableOption "Enable gesture-nvim plugin";
enable = mkEnableOption "gesture-nvim: mouse gestures";
mappings = {
draw = mkMappingOption "Start drawing [gesture.nvim]" "<LeftDrag>";

View file

@ -1,11 +1,7 @@
{
config,
lib,
...
}:
{lib, ...}:
with lib;
with builtins; {
options.vim.utility.icon-picker = {
enable = mkEnableOption "Enable nerdfonts icon picker for nvim";
enable = mkEnableOption "nerdfonts icon picker for nvim";
};
}

View file

@ -5,6 +5,6 @@ with lib; {
hop = mkMappingOption "Jump to occurences [hop.nvim]" "<leader>h";
};
enable = mkEnableOption "Enable Hop.nvim plugin (easy motion)";
enable = mkEnableOption "Hop.nvim plugin (easy motion)";
};
}

View file

@ -2,7 +2,7 @@
with lib;
with builtins; {
options.vim.utility.motion.leap = {
enable = mkEnableOption "Enable leap.nvim plugin (easy motion)";
enable = mkEnableOption "leap.nvim plugin (easy motion)";
mappings = {
leapForwardTo = mkOption {

View file

@ -45,6 +45,11 @@ in {
mkIf config.vim.treesitter.enable
(mkSetBinding mappings.treesitter "<cmd> Telescope treesitter<CR>")
)
(
mkIf config.vim.projects.project-nvim.enable
(mkSetBinding mappings.findProjects "<cmd Telescope projects<CR>")
)
];
vim.luaConfigRC.telescope = nvim.dag.entryAnywhere ''

View file

@ -3,6 +3,8 @@ with lib;
with builtins; {
options.vim.telescope = {
mappings = {
findProjects = mkMappingOption "Find files [Telescope]" "<leader>fp";
findFiles = mkMappingOption "Find files [Telescope]" "<leader>ff";
liveGrep = mkMappingOption "Live grep [Telescope]" "<leader>fg";
buffers = mkMappingOption "Buffers [Telescope]" "<leader>fb";
@ -26,6 +28,6 @@ with builtins; {
treesitter = mkMappingOption "Treesitter [Telescope]" "<leader>fs";
};
enable = mkEnableOption "Enable multi-purpose telescope utility";
enable = mkEnableOption "telescope.nvim: multi-purpose search & picker utility";
};
}

View file

@ -6,7 +6,7 @@
with lib;
with builtins; {
options.vim.utility.vim-wakatime = {
enable = mkEnableOption "Enable vim-wakatime";
enable = mkEnableOption "vim-wakatime: live code statistics";
cli-package = mkOption {
type = with types; nullOr package;