From c6fbf9fe365a55bacea90712af5b1f80353c9574 Mon Sep 17 00:00:00 2001 From: Aotrix Date: Fri, 16 Feb 2024 22:00:40 +0100 Subject: added telescope config and remaps --- lua/nvim_settings/remap.lua | 3 +++ lua/telescope/telescope.lua | 4 ++-- lua/transparent/transparent.lua | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) (limited to 'lua') diff --git a/lua/nvim_settings/remap.lua b/lua/nvim_settings/remap.lua index 2e4bbe1..e18ccc2 100644 --- a/lua/nvim_settings/remap.lua +++ b/lua/nvim_settings/remap.lua @@ -14,3 +14,6 @@ vim.keymap.set("x", "p", [["_dP]]) vim.keymap.set({"n", "v"}, "y", [["+y]]) vim.keymap.set("n", "Y", [["+Y]]) + +vim.keymap.set("n", "pf", function() require("telescope.builtin").find_files() end) +vim.keymap.set("n", "pg", function() require('telescope').extensions.live_grep_args.live_grep_args() end) diff --git a/lua/telescope/telescope.lua b/lua/telescope/telescope.lua index 2f91f35..2bb8542 100644 --- a/lua/telescope/telescope.lua +++ b/lua/telescope/telescope.lua @@ -1,5 +1,5 @@ return { 'nvim-telescope/telescope.nvim', tag = '0.1.5', -- or , branch = '0.1.x', - dependencies = { 'nvim-lua/plenary.nvim' } - } + dependencies = { 'nvim-lua/plenary.nvim' }, +} diff --git a/lua/transparent/transparent.lua b/lua/transparent/transparent.lua index 757009b..6a038af 100644 --- a/lua/transparent/transparent.lua +++ b/lua/transparent/transparent.lua @@ -1,7 +1,7 @@ require("transparent").setup({ extra_groups = { -- table/string: additional groups that should be cleared -- In particular, when you set it to 'all', that means all available groups - "TelescopeBorder", + -- "TelescopeBorder", "FloatBorder" }, }) -- cgit v1.2.3