new nvim config WIP

This commit is contained in:
Bryan Ramos 2024-08-20 16:53:12 -04:00
parent 8163e330a0
commit 4c8fadee55
Signed by: bryan
GPG key ID: 6ABDCD144D6643C8
14 changed files with 463 additions and 0 deletions

View file

@ -0,0 +1,34 @@
return {
{
"nvim-telescope/telescope.nvim",
brach = '0.1.x',
dependencies = {
{
'nvim-lua/plenary.nvim'
},
{
'nvim-tree/nvim-web-devicons'
}
},
config = function()
require("which-key").add({
{ "<leader>/", ":Telescope live_grep<CR>", desc = "grep" },
{ "<leader>ff", ":Telescope fd<CR>", desc = "Search for Files" },
{ "<leader>fp", ":Telescope oldfiles<CR>", desc = "Oldfiles" },
{ "<leader>?", ":Telescope command_history<CR>", desc = "Command History" },
{ "<leader>cm", ":Telescope man_pages<CR>", desc = "Manpages" },
-- Code
{ "<leader>gd", ":Telescope lsp_definitions<CR>", desc = "Go to Definition" },
{ "<leader>gi", ":Telescope lsp_implementations<CR>", desc = "Go to Implementations" },
{ "<leader>gt", ":Telescope lsp_type_definitions<CR>", desc = "Go to Type Definition" },
{ "<leader>cv", ":Telescope treesitter<CR>", desc = "List function names & variables" },
{ "<leader>ca", ":Telescope diagnostics<CR>", desc = "Code diagnostics" },
-- Git
{ "<leader>Gt", ":Telescope git_branches<CR>", desc = "Git Branches" },
{ "<leader>Gc", ":Telescope git_commits<CR>", desc = "Git Commits" },
})
end
}
}