[nvim] add small Telescope option and live_grep shortcut

This commit is contained in:
Gregory Trolliet 2024-10-19 17:03:44 +02:00
parent 9236a4c024
commit 70a4d4a8ef

View file

@ -21,10 +21,19 @@ options = { noremap = true }
map('n', '<Leader>ff', ':Telescope find_files<Enter>', options) map('n', '<Leader>ff', ':Telescope find_files<Enter>', options)
map('n', '<Leader>fg', ':Telescope git_files<Enter>', options) map('n', '<Leader>fg', ':Telescope git_files<Enter>', options)
map('n', '<Leader>gc', ':Telescope git_commits<Enter>', options) map('n', '<Leader>gc', ':Telescope git_commits<Enter>', options)
map('n', '<Leader>fl', ':Telescope live_grep<Enter>', options)
map('n', '<Leader><Space>', ':Telescope buffers<Enter>', options) map('n', '<Leader><Space>', ':Telescope buffers<Enter>', options)
map('n', '<Leader>t', ':TagbarToggle<Enter>', options) map('n', '<Leader>t', ':TagbarToggle<Enter>', options)
--------------------------------------------------
-- Telescope
--------------------------------------------------
require('telescope').setup{
defaults = {
prompt_prefix = "> ",
}
}
-------------------------------------------------- --------------------------------------------------
-- LSP -- LSP