From 12217bc70b137542303bf96b47b5ebe31cd9c105 Mon Sep 17 00:00:00 2001 From: Fernando Schauenburg Date: Tue, 31 Jan 2023 10:28:36 +0100 Subject: [PATCH] nvim: visual tweaks to Telescope --- config/nvim/after/plugin/telescope.lua | 38 +++++++++++++------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/config/nvim/after/plugin/telescope.lua b/config/nvim/after/plugin/telescope.lua index 6d12a80..3ddd23f 100644 --- a/config/nvim/after/plugin/telescope.lua +++ b/config/nvim/after/plugin/telescope.lua @@ -12,7 +12,7 @@ local common_mappings = { telescope.setup { defaults = { - prompt_prefix = '❯ ', + prompt_prefix = ' ❯ ', selection_caret = ' ', -- Other ideas: ➔  multi_icon = ' ', @@ -52,14 +52,14 @@ telescope.setup { }, pickers = { - buffers = { prompt_title = ' ﬘ Find buffers ' }, - find_files = { prompt_title = '  Find files ' }, - git_commits = { prompt_title = '  Find commits ' }, - help_tags = { prompt_title = ' ﬤ Find help tags ' }, - keymaps = { prompt_title = '  Find keymaps ' }, - live_grep = { prompt_title = ' 🔍 Grep ' }, - vim_options = { prompt_title = '  Find options ' }, - man_pages = { prompt_title = '  Find man pages '}, + buffers = { prompt_title = ' ﬘ Buffers ' }, + find_files = { prompt_title = '  Files ' }, + git_commits = { prompt_title = '  Commits ' }, + help_tags = { prompt_title = '  Help tags ' }, + keymaps = { prompt_title = '  Keymaps ' }, + live_grep = { prompt_title = '  Live grep ' }, + vim_options = { prompt_title = '  Vim options ' }, + man_pages = { prompt_title = '  Man pages ' }, }, extensions = { @@ -110,21 +110,21 @@ local custom = { local map = vim.keymap.set -map('n', 'fb', builtin.buffers, { desc = 'Telescope: find buffers' }) -map('n', 'fc', builtin.git_commits, { desc = 'Telescope: find commits' }) -map('n', 'fd', custom.dotfiles, { desc = 'Telescope: find in dotfiles' }) -map('n', 'ff', builtin.find_files, { desc = 'Telescope: find files in $PWD' }) -map('n', 'fg', builtin.live_grep, { desc = 'Telescope: live grep in $PWD' }) -map('n', 'fh', builtin.help_tags, { desc = 'Telescope: find help tags' }) -map('n', 'fk', builtin.keymaps, { desc = 'Telescope: find keymaps' }) -map('n', 'fm', custom.man_pages, { desc = 'Telescope: find man pages' }) -map('n', 'fo', builtin.vim_options, { desc = 'Telescope: find vim options' }) +map('n', 'fb', builtin.buffers, { desc = ' [F]ind [B]uffers' }) +map('n', 'fc', builtin.git_commits, { desc = ' [F]ind [C]ommits' }) +map('n', 'fd', custom.dotfiles, { desc = ' [F]ind [D]otfiles' }) +map('n', 'ff', builtin.find_files, { desc = ' [F]ind [F]iles in $PWD' }) +map('n', 'fg', builtin.live_grep, { desc = ' [F]ind with [G]rep in $PWD' }) +map('n', 'fh', builtin.help_tags, { desc = ' [F]ind [H]elp tags' }) +map('n', 'fk', builtin.keymaps, { desc = ' [F]ind [K]eymaps' }) +map('n', 'fm', custom.man_pages, { desc = ' [F]ind [M]an pages' }) +map('n', 'fo', builtin.vim_options, { desc = ' [F]ind vim [O]ptions' }) local loaded_file_browser, _ = pcall(telescope.load_extension, 'file_browser') if loaded_file_browser then - map('n', 'br', 'Telescope file_browser') + map('n', 'br', 'Telescope file_browser', { desc = ' file [BR]owser' }) else vim.notify('Telescope file_browser not installed!', vim.log.levels.WARN) end