mirror of
https://github.com/tcaxle/kickstart.nvim.git
synced 2024-11-25 16:52:04 +00:00
Adds two essential telescope keymaps (#528)
* Added keymap for select Telescope picker * Added keymap for search in all open files
This commit is contained in:
parent
f8c8b08bc1
commit
3824342d10
8
init.lua
8
init.lua
@ -399,6 +399,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' })
|
||||
|
Loading…
Reference in New Issue
Block a user