added more capabilities to my nvim setup
This commit is contained in:
@@ -2,6 +2,27 @@
|
||||
-- Custom keybindings for file explorer (snacks.nvim built into LazyVim)
|
||||
|
||||
return {
|
||||
{
|
||||
"nvim-telescope/telescope.nvim",
|
||||
opts = {
|
||||
defaults = {
|
||||
hidden = true,
|
||||
file_ignore_patterns = {},
|
||||
},
|
||||
pickers = {
|
||||
find_files = {
|
||||
hidden = true,
|
||||
no_ignore = true,
|
||||
no_ignore_parent = true,
|
||||
},
|
||||
live_grep = {
|
||||
additional_args = function()
|
||||
return { "--hidden", "--no-ignore" }
|
||||
end,
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
-- Configure snacks.nvim explorer (already included in LazyVim)
|
||||
{
|
||||
"folke/snacks.nvim",
|
||||
@@ -39,12 +60,12 @@ return {
|
||||
},
|
||||
keys = {
|
||||
-- Ctrl+Shift+e - Toggle explorer
|
||||
{ "<C-S-e>", function() Snacks.explorer() end, desc = "Toggle Explorer" },
|
||||
{ "<C-S-e>", function() Snacks.explorer() end, desc = "Toggle Explorer" },
|
||||
-- Alternative binding if terminal doesn't handle Ctrl+Shift
|
||||
{ "<leader>fe", function() Snacks.explorer() end, desc = "File Explorer" },
|
||||
{ "<leader>fe", function() Snacks.explorer() end, desc = "File Explorer" },
|
||||
-- Lazygit
|
||||
{ "<leader>gg", function() Snacks.lazygit() end, desc = "Lazygit" },
|
||||
{ "<leader>gl", function() Snacks.lazygit.log() end, desc = "Lazygit Log" },
|
||||
{ "<leader>gg", function() Snacks.lazygit() end, desc = "Lazygit" },
|
||||
{ "<leader>gl", function() Snacks.lazygit.log() end, desc = "Lazygit Log" },
|
||||
{ "<leader>gf", function() Snacks.lazygit.log_file() end, desc = "Lazygit File History" },
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user