diff options
author | Damjan 9000 <damjan.9000@gmail.com> | 2023-12-04 19:24:25 +0100 |
---|---|---|
committer | Damjan 9000 <damjan.9000@gmail.com> | 2023-12-04 19:24:25 +0100 |
commit | 5db82f334ff530ac53eeb2313c7425221065a8af (patch) | |
tree | 297c2fcbcd3d97d3064c7da5aaedfc7547cf1920 /lua/telescope-setup.lua | |
parent | a54945c75a1deab7e62d6213e803feaaa9802b9a (diff) | |
parent | 3824342d107850dfe5b179d0a39e0d8fcd54411d (diff) |
Merge 'upstream/master' keymaps for telescope and gitsigns
Diffstat (limited to 'lua/telescope-setup.lua')
-rw-r--r-- | lua/telescope-setup.lua | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lua/telescope-setup.lua b/lua/telescope-setup.lua index 3a4e162..cfb5a56 100644 --- a/lua/telescope-setup.lua +++ b/lua/telescope-setup.lua @@ -61,6 +61,14 @@ vim.keymap.set('n', '<leader>/', function() }) end, { desc = '[/] Fuzzily search in current buffer' }) +local function telescope_live_grep_open_files() + require('telescope.builtin').live_grep { + grep_open_files = true, + prompt_title = 'Live Grep in Open Files', + } +end +vim.keymap.set('n', '<leader>s/', telescope_live_grep_open_files, { desc = '[S]earch [/] in Open Files' }) +vim.keymap.set('n', '<leader>ss', require('telescope.builtin').builtin, { desc = '[S]earch [S]elect Telescope' }) vim.keymap.set('n', '<leader>gf', require('telescope.builtin').git_files, { desc = 'Search [G]it [F]iles' }) vim.keymap.set('n', '<leader>sf', require('telescope.builtin').find_files, { desc = '[S]earch [F]iles' }) vim.keymap.set('n', '<leader>sh', require('telescope.builtin').help_tags, { desc = '[S]earch [H]elp' }) |