Update .config/nvim/lua/plugins/alpha.lua

Update .config/nvim/lua/plugins/telescope.lua
This commit is contained in:
Anthony Rodriguez 2024-08-16 00:12:34 +02:00
parent ef3219e314
commit 62f381589e
Signed by: nezia
GPG key ID: EE3BE97C040A86CE
2 changed files with 8 additions and 8 deletions

View file

@ -34,7 +34,7 @@ return {
dashboard.section.buttons.val = {
dashboard.button("e", " New file", ":ene <BAR> startinsert <CR>"),
dashboard.button("f", "󰈞 Find file", ":Telescope find_files <CR>"),
dashboard.button("p", " Open project", ":Telescope projects<CR>"),
dashboard.button("p", " Open project", ":Telescope project<CR>"),
}
alpha.setup(dashboard.opts)
end

View file

@ -8,14 +8,14 @@ return {
},
opts = {}, -- define config options here, or use a config() function
config = function()
require('telescope').load_extension('projects')
require('telescope').load_extension('project')
end,
keys = {
{ '<leader>ff', function() require 'telescope.builtin'.find_files() end, desc = 'Find files', mode = 'n' },
{ '<leader>fg', function() require('telescope.builtin').live_grep() end, desc = 'Live grep', mode = 'n' },
{ '<leader>fb', function() require('telescope.builtin').buffers() end, desc = 'Buffers', 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, desc = 'Projects', mode = 'n' },
{ '<leader>fd', "<cmd>Telescope diagnostics<CR>", desc = 'Diagnostics', 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, desc = 'Live grep', mode = 'n' },
{ '<leader>fb', function() require('telescope.builtin').buffers() end, desc = 'Buffers', mode = 'n' },
{ '<leader>fh', function() require('telescope.builtin').help_tags() end, desc = 'Help tags', mode = 'n' },
{ '<leader>fp', function() require('telescope').extensions.project.project {} end, desc = 'Projects', mode = 'n' },
{ '<leader>fd', "<cmd>Telescope diagnostics<CR>", desc = 'Diagnostics', mode = 'n' }
},
}