Skip to content
This repository has been archived by the owner on Apr 23, 2024. It is now read-only.

FrancescElies/broot.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Broot in nvim

⚠️ Abandoned: the following shortcuts in wezterm do a better job than this plugin.

  { 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

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,
})

Test it

Quick test nvim -c "Br"

About

lua broot nvim integration

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published