From 70a4d4a8ef5bd4dc51e0723db19f0998b9b5bcf1 Mon Sep 17 00:00:00 2001 From: Gregory Trolliet Date: Sat, 19 Oct 2024 17:03:44 +0200 Subject: [PATCH] [nvim] add small Telescope option and live_grep shortcut --- .config/nvim/init.lua | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.config/nvim/init.lua b/.config/nvim/init.lua index aa7b691..8fe1c56 100644 --- a/.config/nvim/init.lua +++ b/.config/nvim/init.lua @@ -21,10 +21,19 @@ options = { noremap = true } map('n', 'ff', ':Telescope find_files', options) map('n', 'fg', ':Telescope git_files', options) map('n', 'gc', ':Telescope git_commits', options) +map('n', 'fl', ':Telescope live_grep', options) map('n', '', ':Telescope buffers', options) map('n', 't', ':TagbarToggle', options) +-------------------------------------------------- +-- Telescope +-------------------------------------------------- +require('telescope').setup{ + defaults = { + prompt_prefix = "> ", + } +} -------------------------------------------------- -- LSP