Skip to content

Latest commit

 

History

History
73 lines (61 loc) · 1.75 KB

README.md

File metadata and controls

73 lines (61 loc) · 1.75 KB

repo.nvim

Switch between repositories with ease
Access your local repositories within neovim

Tests LICENSE

Installations

This extension depends on repo. You can install relevant binary for your platform.

With Telescope

It provides a list of repositories to switch between.

-- lazy.nvim
{
 'nvim-telescope/telescope.nvim',
  dependencies = {
    'nvim-lua/plenary.nvim',
    'mohitsinghs/repo.nvim',
  },
  config = function()
    -- telescope configs
    require'telescope'.load_extension'repo'
    -- other telescope configs
  end,
}

With Neotree

It provides a tree of repositories to switch between.

 {
  "nvim-neo-tree/neo-tree.nvim",
  branch = "v2.x",
  dependencies = {
    "nvim-lua/plenary.nvim",
    "nvim-tree/nvim-web-devicons",
    "MunifTanjim/nui.nvim",
    'mohitsinghs/repo.nvim',
  },
 config = function()
   require('neotree').setup({
     -- neotree config
     sources = {
        -- other sources
       "repo",
     },
     -- other neotree configs
   })
 end
}

Usage

  • :Telescope repo - Lists all available repositories in telescope.
  • :Neotree focus repo - focus on tree of repositories in neo-tree sidebar

Configuration

See repo