From 0d997f7744296faee20830d51b70cb4b0893422d Mon Sep 17 00:00:00 2001 From: Fernando Schauenburg Date: Sun, 16 Jul 2023 00:49:44 +0200 Subject: [PATCH] vim/telescope: add keymap for treesitter symbols --- config/nvim/lua/user/plugins/telescope.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/config/nvim/lua/user/plugins/telescope.lua b/config/nvim/lua/user/plugins/telescope.lua index a7a3702..7185cc8 100644 --- a/config/nvim/lua/user/plugins/telescope.lua +++ b/config/nvim/lua/user/plugins/telescope.lua @@ -28,7 +28,8 @@ local config = function() man_pages = '  Man pages ', all_files = '  ALL Files ', dotfiles = '  Find dotfiles ', - grep = '  grep: %s ', + grep = '  Grep: %s ', + treesitter = '  Treesitter Symbols', } telescope.setup { @@ -79,6 +80,7 @@ local config = function() live_grep = { prompt_title = titles.live_grep }, vim_options = { prompt_title = titles.vim_options }, man_pages = { prompt_title = titles.man_pages }, + treesitter = { prompt_title = titles.treesitter }, }, extensions = { @@ -174,6 +176,7 @@ local config = function() map('n', 'fo', builtin.vim_options, { desc = ' [F]ind vim [O]ptions' }) map('n', 'fs', custom.grep, { desc = ' [F]ind [S]tring' }) map('v', 'fs', custom.grep, { desc = ' [F]ind visual [S]election' }) + map('n', 'ft', builtin.treesitter, { desc = ' [F]ind [T]reesitter Symbols' }) map('n', 'br', 'Telescope file_browser', { desc = ' file [BR]owser' }) end