2024-02-19 22:39:43 +00:00
|
|
|
{
|
|
|
|
pkgs,
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}: let
|
|
|
|
inherit (lib) mkMappingOption mkEnableOption mkOption types;
|
2023-11-07 00:50:27 +00:00
|
|
|
in {
|
2023-02-28 07:13:56 +00:00
|
|
|
options.vim.telescope = {
|
2023-04-22 13:48:21 +00:00
|
|
|
mappings = {
|
2023-06-05 20:10:25 +00:00
|
|
|
findProjects = mkMappingOption "Find files [Telescope]" "<leader>fp";
|
|
|
|
|
2023-04-22 13:48:21 +00:00
|
|
|
findFiles = mkMappingOption "Find files [Telescope]" "<leader>ff";
|
2023-05-02 22:26:21 +00:00
|
|
|
liveGrep = mkMappingOption "Live grep [Telescope]" "<leader>fg";
|
|
|
|
buffers = mkMappingOption "Buffers [Telescope]" "<leader>fb";
|
|
|
|
helpTags = mkMappingOption "Help tags [Telescope]" "<leader>fh";
|
|
|
|
open = mkMappingOption "Open [Telescope]" "<leader>ft";
|
2023-04-22 13:48:21 +00:00
|
|
|
|
2023-05-02 22:26:21 +00:00
|
|
|
gitCommits = mkMappingOption "Git commits [Telescope]" "<leader>fvcw";
|
|
|
|
gitBufferCommits = mkMappingOption "Git buffer commits [Telescope]" "<leader>fvcb";
|
|
|
|
gitBranches = mkMappingOption "Git branches [Telescope]" "<leader>fvb";
|
|
|
|
gitStatus = mkMappingOption "Git status [Telescope]" "<leader>fvs";
|
|
|
|
gitStash = mkMappingOption "Git stash [Telescope]" "<leader>fvx";
|
2023-04-22 13:48:21 +00:00
|
|
|
|
2023-05-02 22:26:21 +00:00
|
|
|
lspDocumentSymbols = mkMappingOption "LSP Document Symbols [Telescope]" "<leader>flsb";
|
|
|
|
lspWorkspaceSymbols = mkMappingOption "LSP Workspace Symbols [Telescope]" "<leader>flsw";
|
|
|
|
lspReferences = mkMappingOption "LSP References [Telescope]" "<leader>flr";
|
|
|
|
lspImplementations = mkMappingOption "LSP Implementations [Telescope]" "<leader>fli";
|
|
|
|
lspDefinitions = mkMappingOption "LSP Definitions [Telescope]" "<leader>flD";
|
|
|
|
lspTypeDefinitions = mkMappingOption "LSP Type Definitions [Telescope]" "<leader>flt";
|
|
|
|
diagnostics = mkMappingOption "Diagnostics [Telescope]" "<leader>fld";
|
2023-04-22 13:48:21 +00:00
|
|
|
|
2023-05-02 22:26:21 +00:00
|
|
|
treesitter = mkMappingOption "Treesitter [Telescope]" "<leader>fs";
|
2023-04-22 13:48:21 +00:00
|
|
|
};
|
|
|
|
|
2023-06-05 23:22:55 +00:00
|
|
|
enable = mkEnableOption "telescope.nvim: multi-purpose search and picker utility";
|
2024-02-19 22:39:43 +00:00
|
|
|
|
|
|
|
vimgrep_arguments = mkOption {
|
|
|
|
description = "Arguments to use for the grep command";
|
|
|
|
type = types.listOf types.str;
|
|
|
|
default = [
|
|
|
|
"${pkgs.ripgrep}/bin/rg"
|
|
|
|
"--color=never"
|
|
|
|
"--no-heading"
|
|
|
|
"--with-filename"
|
|
|
|
"--line-number"
|
|
|
|
"--column"
|
|
|
|
"--smart-case"
|
|
|
|
"--hidden"
|
|
|
|
"--no-ignore"
|
|
|
|
];
|
|
|
|
};
|
2023-02-28 07:13:56 +00:00
|
|
|
};
|
|
|
|
}
|
2024-04-27 13:09:37 +00:00
|
|
|
|