From 7817df3b90e175cda96622b5ea4f3b5a095cdb55 Mon Sep 17 00:00:00 2001 From: Joshua Finch Date: Mon, 4 Mar 2024 15:13:41 -0600 Subject: [PATCH] Updating the telescope keymappings to use a different leader to separate it from generic operations. --- nvim/lua/plugins/telescope.lua | 70 +++++++++++++++++++++++++++++----- 1 file changed, 61 insertions(+), 9 deletions(-) diff --git a/nvim/lua/plugins/telescope.lua b/nvim/lua/plugins/telescope.lua index 77245c1..7320e7d 100644 --- a/nvim/lua/plugins/telescope.lua +++ b/nvim/lua/plugins/telescope.lua @@ -33,14 +33,66 @@ return { 'nvim-lua/plenary.nvim' }, keys = { - { 'ff', 'Telescope find_files' }, - { 'fg', 'Telescope git_commits' }, - { 'fh', 'Telescope help_tags' }, - { 'fr', 'Telescope live_grep' }, - { 'fm', 'Telescope marks' }, - { 'fb', 'Telescope buffers' }, - { 'fd', 'Telescope diagnostics' }, - { 'fs', 'Telescope lsp_document_symbols' }, - { 'fw', 'Telescope lsp_dynamic_workspace_symbols' }, + { + ';f', + function() + require('telescope.builtin').find_files({ + no_ignore = false, + hidden = true, + file_ignore_patterns = { + '.git', + '.node_modules', + }, + }) + end, + }, + { + ';r', + function() + require('telescope.builtin').live_grep() + end, + }, + { + '\\\\', + function() + require('telescope.builtin').buffers() + end, + }, + { + ';h', + function() + require('telescope.builtin').help_tags() + end, + }, + { + ';;', + function() + require('telescope.builtin').resume() + end, + }, + { + ';d', + function() + require('telescope.builtin').diagnostics() + end, + }, + { + ';t', + function() + require('telescope.builtin').treesitter() + end, + }, + { + ';s', + function() + require('telescope.builtin').lsp_document_symbols() + end + }, + { + ';w', + function() + require('telescope.builtin').lsp_dynamic_workspace_symbols() + end + }, }, }