From a07141003942296d47f3b49db46db1a286900328 Mon Sep 17 00:00:00 2001 From: Miguel Palhas Date: Wed, 16 Oct 2024 17:24:06 +0100 Subject: [PATCH] buffer navigation --- lua/mappings.lua | 3 --- lua/plugins/telescope.lua | 7 +++++++ 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/lua/mappings.lua b/lua/mappings.lua index 29c5bb6..5670f02 100644 --- a/lua/mappings.lua +++ b/lua/mappings.lua @@ -18,8 +18,5 @@ map("i", "jk", "") map("n", "", ":update") map("i", "", ":update") --- switch between last two files --- map("n", "", ":b#", { desc = "switch between last two files" }) - -- remove search highlight map("n", ",", ":noh") diff --git a/lua/plugins/telescope.lua b/lua/plugins/telescope.lua index 895a931..9270ab7 100644 --- a/lua/plugins/telescope.lua +++ b/lua/plugins/telescope.lua @@ -29,6 +29,13 @@ return { end, desc = "Grep string", }, + { + "b", + function() + require("telescope.builtin").buffers() + end, + desc = "Buffers", + }, }, }, }