From 889ae2623e373ae94f9dce0d2a7c0e8daf86e009 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=83=A1=E9=91=AB?= Date: Mon, 10 Feb 2025 14:28:12 +0800 Subject: [PATCH] refactor: collapse telescope keys --- lua/plugins/editing.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lua/plugins/editing.lua b/lua/plugins/editing.lua index dbaa5f8..72d37da 100644 --- a/lua/plugins/editing.lua +++ b/lua/plugins/editing.lua @@ -69,10 +69,10 @@ return { local utils = require('telescope.utils') -- generic - -- vim.keymap.set('n', 'l', builtin.live_grep, { desc = 'Telescope live grep' }) - vim.keymap.set('n', 'H', builtin.help_tags, { desc = 'Telescope help tags' }) - vim.keymap.set('n', 'o', builtin.oldfiles, { desc = 'Telescope oldfiles' }) - vim.keymap.set('n', 't', function() + vim.keymap.set('n', 'tl', builtin.live_grep, { desc = 'Telescope live grep' }) + vim.keymap.set('n', 'th', builtin.help_tags, { desc = 'Telescope help tags' }) + vim.keymap.set('n', 'to', builtin.oldfiles, { desc = 'Telescope oldfiles' }) + vim.keymap.set('n', 'tt', function() vim.cmd [[TodoTelescope]] end, { desc = 'Telescope Todo' })