From 2bce0d957b9f3b89539be58aaed8492be2d09060 Mon Sep 17 00:00:00 2001 From: diniamo <55629891+diniamo@users.noreply.github.com> Date: Fri, 15 Nov 2024 08:17:54 +0100 Subject: [PATCH] telescope: add missing mappings, cleanup (#469) --- modules/plugins/utility/telescope/config.nix | 39 ++++++++++---------- 1 file changed, 20 insertions(+), 19 deletions(-) diff --git a/modules/plugins/utility/telescope/config.nix b/modules/plugins/utility/telescope/config.nix index d5881fa..c94fe90 100644 --- a/modules/plugins/utility/telescope/config.nix +++ b/modules/plugins/utility/telescope/config.nix @@ -34,36 +34,37 @@ in { keys = [ - (mkSetLznBinding "n" mappings.findFiles " Telescope find_files") - (mkSetLznBinding "n" mappings.liveGrep " Telescope live_grep") - (mkSetLznBinding "n" mappings.buffers " Telescope buffers") - (mkSetLznBinding "n" mappings.helpTags " Telescope help_tags") - (mkSetLznBinding "n" mappings.open " Telescope") + (mkSetLznBinding "n" mappings.findFiles "Telescope find_files") + (mkSetLznBinding "n" mappings.liveGrep "Telescope live_grep") + (mkSetLznBinding "n" mappings.buffers "Telescope buffers") + (mkSetLznBinding "n" mappings.helpTags "Telescope help_tags") + (mkSetLznBinding "n" mappings.open "Telescope") + (mkSetLznBinding "n" mappings.resume "Telescope resume") - (mkSetLznBinding "n" mappings.gitCommits " Telescope git_commits") - (mkSetLznBinding "n" mappings.gitBufferCommits " Telescope git_bcommits") - (mkSetLznBinding "n" mappings.gitBranches " Telescope git_branches") - (mkSetLznBinding "n" mappings.gitStatus " Telescope git_status") - (mkSetLznBinding "n" mappings.gitStash " Telescope git_stash") + (mkSetLznBinding "n" mappings.gitCommits "Telescope git_commits") + (mkSetLznBinding "n" mappings.gitBufferCommits "Telescope git_bcommits") + (mkSetLznBinding "n" mappings.gitBranches "Telescope git_branches") + (mkSetLznBinding "n" mappings.gitStatus "Telescope git_status") + (mkSetLznBinding "n" mappings.gitStash "Telescope git_stash") ] ++ (optionals config.vim.lsp.enable [ - (mkSetLznBinding "n" mappings.lspDocumentSymbols " Telescope lsp_document_symbols") - (mkSetLznBinding "n" mappings.lspWorkspaceSymbols " Telescope lsp_workspace_symbols") + (mkSetLznBinding "n" mappings.lspDocumentSymbols "Telescope lsp_document_symbols") + (mkSetLznBinding "n" mappings.lspWorkspaceSymbols "Telescope lsp_workspace_symbols") - (mkSetLznBinding "n" mappings.lspReferences " Telescope lsp_references") - (mkSetLznBinding "n" mappings.lspImplementations " Telescope lsp_implementations") - (mkSetLznBinding "n" mappings.lspDefinitions " Telescope lsp_definitions") - (mkSetLznBinding "n" mappings.lspTypeDefinitions " Telescope lsp_type_definitions") - (mkSetLznBinding "n" mappings.diagnostics " Telescope diagnostics") + (mkSetLznBinding "n" mappings.lspReferences "Telescope lsp_references") + (mkSetLznBinding "n" mappings.lspImplementations "Telescope lsp_implementations") + (mkSetLznBinding "n" mappings.lspDefinitions "Telescope lsp_definitions") + (mkSetLznBinding "n" mappings.lspTypeDefinitions "Telescope lsp_type_definitions") + (mkSetLznBinding "n" mappings.diagnostics "Telescope diagnostics") ]) ++ ( optionals config.vim.treesitter.enable [ - (mkSetLznBinding "n" mappings.treesitter " Telescope treesitter") + (mkSetLznBinding "n" mappings.treesitter "Telescope treesitter") ] ) ++ ( optionals config.vim.projects.project-nvim.enable [ - (mkSetLznBinding "n" mappings.findProjects "") + (mkSetLznBinding "n" mappings.findProjects "Telescope projects") ] ); };