Update .config/nvim/lua/plugins/telescope.lua

This commit is contained in:
Anthony Rodriguez 2024-08-15 00:20:21 +02:00
parent cc38d4177c
commit 32746a3db7
Signed by: nezia
GPG key ID: EE3BE97C040A86CE

View file

@ -11,10 +11,11 @@ return {
require('telescope').load_extension('projects') require('telescope').load_extension('projects')
end, end,
keys = { keys = {
{ '<leader>ff', function() require 'telescope.builtin'.find_files() end, mode = 'n' }, { '<leader>ff', function() require 'telescope.builtin'.find_files() end, desc = 'Find files', mode = 'n' },
{ '<leader>fg', function() require('telescope.builtin').live_grep() end, mode = 'n' }, { '<leader>fg', function() require('telescope.builtin').live_grep() end, desc = 'Live grep', mode = 'n' },
{ '<leader>fb', function() require('telescope.builtin').buffers() end, mode = 'n' }, { '<leader>fb', function() require('telescope.builtin').buffers() end, desc = 'Buffers', mode = 'n' },
{ '<leader>fh', function() require('telescope.builtin').help_tags() end, mode = 'n' }, { '<leader>fh', function() require('telescope.builtin').help_tags() end, desc = 'Help tags', mode = 'n' },
{ '<leader>fp', function() require('telescope').extensions.projects.projects {} end, mode = 'n' } { '<leader>fp', function() require('telescope').extensions.projects.projects {} end, desc = 'Projects', mode = 'n' },
{ '<leader>fd', "<cmd>Telescope diagnostics<CR>", desc = 'Diagnostics', mode = 'n' }
}, },
} }