Small cleanups

This commit is contained in:
2025-01-25 23:22:19 +01:00
parent dbc0264579
commit eb6432f52d
5 changed files with 25 additions and 3 deletions
+18
View File
@@ -6,6 +6,10 @@ return {
keys = {
{ "<leader>f", "<cmd>Telescope find_files<cr>", desc = "Find Files" },
{ "<leader>F", "<cmd>Telescope ripgrep theme=ivy<cr>", desc = "Grep" },
-- { "<leader>gl", "<cmd>Telescope git_commits<cr>", desc = "Git log" },
-- { "<leader>gh", "<cmd>Telescope git_bcommits<cr>", desc = "Git history" },
-- { "<leader>gB", "<cmd>Telescope git_branches<cr>", desc = "Git branches" },
-- { "<leader>gs", "<cmd>Telescope git_status<cr>", desc = "Git status" },
{
"<leader>gl",
function()
@@ -79,6 +83,7 @@ return {
find_command = { "fd", "--type", "f", "--strip-cwd-prefix", "-E", ".git" },
},
git_commits = {
-- use_file_path = true,
mappings = {
i = {
["<CR>"] = git_show,
@@ -87,6 +92,7 @@ return {
},
},
git_bcommits = {
-- use_file_path = true,
mappings = {
i = {
["<CR>"] = git_show,
@@ -94,6 +100,18 @@ return {
},
},
},
git_branches = {
-- use_file_path = true,
show_remote_tracking_branches = false,
mappings = {
mappings = {
i = { ["<cr>"] = actions.git_switch_branch },
},
}
},
git_status = {
-- use_file_path = true,
},
},
})