From 5bdee7a33e3438cae15de1846217b778809a942c Mon Sep 17 00:00:00 2001 From: Yuan Chiu Date: Thu, 1 May 2025 15:28:40 +0800 Subject: [PATCH] =?UTF-8?q?nvim:=20C-p=20C-n=20=E5=BF=AB=E9=80=9F=E9=8D=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../exact_components/exact_buffer/barbar.lua | 2 ++ .../exact_plugins/exact_components/telescope.lua | 13 ++++++++++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/dot_config/nvim/exact_lua/exact_plugins/exact_components/exact_buffer/barbar.lua b/dot_config/nvim/exact_lua/exact_plugins/exact_components/exact_buffer/barbar.lua index eae2bf1..7f1bcfe 100644 --- a/dot_config/nvim/exact_lua/exact_plugins/exact_components/exact_buffer/barbar.lua +++ b/dot_config/nvim/exact_lua/exact_plugins/exact_components/exact_buffer/barbar.lua @@ -41,6 +41,8 @@ return { vim.api.nvim_set_keymap('n', '', 'BufferPrevious', { noremap = true, silent = true }) vim.api.nvim_set_keymap('n', '', 'BufferNext', { noremap = true, silent = true }) vim.api.nvim_set_keymap('n', '', 'BufferPrevious', { noremap = true, silent = true }) + + vim.api.nvim_set_keymap('n', '', 'enew', { noremap = true, silent = true }) end, }, } diff --git a/dot_config/nvim/exact_lua/exact_plugins/exact_components/telescope.lua b/dot_config/nvim/exact_lua/exact_plugins/exact_components/telescope.lua index 7d75982..e83b93c 100644 --- a/dot_config/nvim/exact_lua/exact_plugins/exact_components/telescope.lua +++ b/dot_config/nvim/exact_lua/exact_plugins/exact_components/telescope.lua @@ -2,5 +2,16 @@ return { -- 'nvim-telescope/telescope.nvim', tag = '0.1.8', 'nvim-telescope/telescope.nvim', branch = '0.1.x', - dependencies = { 'nvim-lua/plenary.nvim' } + dependencies = { 'nvim-lua/plenary.nvim' }, + + lazy = false, + keys = { + { "", "Telescope find_files", desc = "Find files" }, + + { "ff", "Telescope find_files", desc = "Find files" }, + { "fg", "Telescope live_grep", desc = "Grep" }, + { "fb", "Telescope buffers", desc = "Buffers" }, + { "fh", "Telescope help_tags", desc = "Help tags" }, + { "fk", "Telescope keymaps", desc = "Keymaps" }, + }, }