mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-09-05 18:01:32 +00:00
docs: fix mkEnableOption usage for autogenerated documentation
This commit is contained in:
parent
5cef662ccf
commit
a2b58e17af
55 changed files with 225 additions and 333 deletions
|
@ -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";
|
||||
};
|
||||
}
|
||||
|
|
|
@ -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";
|
||||
};
|
||||
}
|
||||
|
|
|
@ -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>";
|
||||
|
|
|
@ -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";
|
||||
};
|
||||
}
|
||||
|
|
|
@ -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>";
|
||||
|
|
|
@ -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";
|
||||
};
|
||||
}
|
||||
|
|
|
@ -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)";
|
||||
};
|
||||
}
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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 ''
|
||||
|
|
|
@ -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";
|
||||
};
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue