[Telescope] Improve keybinds
This commit is contained in:
@@ -34,17 +34,28 @@ return {
|
|||||||
opts.desc = "Show nvim functions"
|
opts.desc = "Show nvim functions"
|
||||||
vim.keymap.set("n", "<leader>fh", builtin.help_tags, opts)
|
vim.keymap.set("n", "<leader>fh", builtin.help_tags, opts)
|
||||||
|
|
||||||
|
-- Git
|
||||||
|
opts.desc = "Show git diff"
|
||||||
|
vim.keymap.set("n", "<leader>fgd", builtin.git_status, opts)
|
||||||
|
|
||||||
|
opts.desc = "Show git commits"
|
||||||
|
vim.keymap.set("n", "<leader>fgc", builtin.git_commits, opts)
|
||||||
|
|
||||||
|
opts.desc = "Show git files"
|
||||||
|
vim.keymap.set("n", "<leader>fgf", builtin.git_files, opts)
|
||||||
|
|
||||||
-- Recent Commands
|
-- Recent Commands
|
||||||
opts.desc = "Show recent commands"
|
opts.desc = "Show recent commands"
|
||||||
vim.keymap.set("n", "<leader>frc", ":Telescope command_history<CR>", opts)
|
vim.keymap.set("n", "<leader>foc", ":Telescope command_history<CR>", opts)
|
||||||
|
|
||||||
-- Recent Searches
|
-- Recent Searches
|
||||||
opts.desc = "Show recent searches"
|
opts.desc = "Show recent searches"
|
||||||
vim.keymap.set("n", "<leader>frs", ":Telescope search_history<CR>", opts)
|
vim.keymap.set("n", "<leader>fos", ":Telescope search_history<CR>", opts)
|
||||||
|
|
||||||
-- Old Files
|
-- Old Files
|
||||||
opts.desc = "Show recent files"
|
opts.desc = "Show recent files"
|
||||||
vim.keymap.set("n", "<leader>frf", ":Telescope oldfiles<CR>", opts)
|
vim.keymap.set("n", "<leader>fof", ":Telescope oldfiles<CR>", opts)
|
||||||
|
vim.keymap.set("n", "<leader>fr", ":Telescope oldfiles<CR>", opts)
|
||||||
|
|
||||||
-- Quickfix Items
|
-- Quickfix Items
|
||||||
opts.desc = "Show quickfix items"
|
opts.desc = "Show quickfix items"
|
||||||
|
Reference in New Issue
Block a user