From 185720adc0be1559e085b3e40fa355aabcd1ef33 Mon Sep 17 00:00:00 2001 From: Huck Boles Date: Thu, 29 Jun 2023 18:24:32 -0500 Subject: [PATCH] added: better telescope mappings --- lua/huck/map.lua | 1 - lua/plugins.lua | 2 +- lua/plugins/telescope.lua | 27 +++++++++++++++++++++++---- 3 files changed, 24 insertions(+), 6 deletions(-) diff --git a/lua/huck/map.lua b/lua/huck/map.lua index 3a93ccb..b631128 100644 --- a/lua/huck/map.lua +++ b/lua/huck/map.lua @@ -23,7 +23,6 @@ vim.keymap.set('n', 's', [[:%s/\<\>//gI< vim.keymap.set('n', 'c', ':r!') vim.keymap.set('n', 'h', ":vsplit ") vim.keymap.set('n', 'v', ":split ") -vim.keymap.set('n', 't', ':tabnew ') vim.keymap.set('n', '-', ':set filetype=') vim.keymap.set('n', '_', 'setlocal spell spelllang=en_us') diff --git a/lua/plugins.lua b/lua/plugins.lua index 8c69f96..bfe9f06 100644 --- a/lua/plugins.lua +++ b/lua/plugins.lua @@ -17,7 +17,7 @@ return { { 'tpope/vim-fugitive', keys = { - { 'G', 'Git' }, + { 'gg', 'Git' }, { 'gc', 'Git commit' }, { 'ga', 'Git add %' }, { 'gd', 'Gdiffsplit' }, diff --git a/lua/plugins/telescope.lua b/lua/plugins/telescope.lua index cfe762b..b3a8649 100644 --- a/lua/plugins/telescope.lua +++ b/lua/plugins/telescope.lua @@ -11,10 +11,29 @@ return { }, }, keys = { - { 'b', 'Telescope buffers' }, - { '', 'Telescope command_history' }, - { 'D', 'Telescope diagnostics' }, - { 'H', 'Telescope help_tags' }, + { 'b', 'Telescope buffers' }, + { 'tt', 'Telescope resume' }, + { 'tc', 'Telescope commands' }, + { 't!', 'Telescope command_history' }, + { 'th', 'Telescope help_tags' }, + { 'tm', 'Telescope marks' }, + { 'tq', 'Telescope quickfix' }, + { 'ts', 'Telescope search_history' }, + { 'tr', 'Telescope registers' }, + { 'tk', 'Telescope keymaps' }, + { 'tb', 'Telescope current_buffer_fuzzy_find' }, + { 'tgc', 'Telescope git_commits' }, + { 'tgd', 'Telescope git_bcommits' }, + { 'tgb', 'Telescope git_branches' }, + { 'tgs', 'Telescope git_status' }, + { 'tft', 'Telescope filetypes' }, + { 'tll', 'Telescope diagnostics' }, + { 'tlr', 'Telescope lsp_references' }, + { 'tld', 'Telescope lsp_type_definitions' }, + { 'tlt', 'Telescope lsp_definitions' }, + { 'tli', 'Telescope lsp_implementations' }, + { 'tls', 'Telescope lsp_document_symbols' }, + { 'tlS', 'Telescope lsp_workspace_symbols' }, }, config = function() require('telescope').setup { -- 2.44.2