neovim-flake/modules/utility/telescope/telescope.nix

32 lines
1.6 KiB
Nix
Raw Permalink Normal View History

2023-04-22 15:48:21 +02:00
{lib, ...}:
with lib;
2023-03-31 04:20:35 +02:00
with builtins; {
options.vim.telescope = {
2023-04-22 15:48:21 +02:00
mappings = {
findFiles = mkMappingOption "Find files [Telescope]" "<leader>ff";
2023-05-03 00:26:21 +02: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 15:48:21 +02:00
2023-05-03 00:26:21 +02: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 15:48:21 +02:00
2023-05-03 00:26:21 +02: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 15:48:21 +02:00
2023-05-03 00:26:21 +02:00
treesitter = mkMappingOption "Treesitter [Telescope]" "<leader>fs";
2023-04-22 15:48:21 +02:00
};
enable = mkEnableOption "Enable multi-purpose telescope utility";
};
}