{ key = 'f', mods = mods.alt, action = a.SplitVertical { args = { 'broot' } } },
{ key = 'f', mods = mods.shift_alt, action = a.SplitHorizontal { args = { 'broot' } } },
Telescope is great but sometimes for certain jobs you already know other tools that fit better the job at hand, one of those is broot.
In certain situations you don't want to have to open another terminal just to use broot, this plugin aims to integrate broot into nvim to avoid that overhead.
Install using lazy.nvim:
require("lazy").setup({
"FrancescElies/broot.nvim",
-- optional for floating window border decoration
dependencies = {
"nvim-lua/plenary.nvim",
},
config = function()
vim.keymap.set('n', '<C-p>', ':BrRoot<cr>', { desc = 'broot (git root)' })
vim.keymap.set('n', '<leader>fb', ':Br<cr>', { desc = 'broot (current dir)' })
vim.keymap.set('n', '<leader>fw', ':Br -w<cr>', { desc = 'find whales (current dir)' })
end,
})
Quick test nvim -c "Br"