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

@ -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";
};
}