8000 GitHub - zongben/proot.nvim: Lightweight project navigator with telescope
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

zongben/proot.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 

Repository files navigation

proot.nvim

Lightweight project navigator with telescope

圖片

Features

  • Autodetect by using lsp and files to save project root dir
  • Use telescope to search and change root dir

Installation

With lazy.nvim

{
  "zongben/proot.nvim",
  dependencies = {
    "nvim-telescope/telescope.nvim",
    "nvim-lua/plenary.nvim"
  },
  opts = {}
}

Configuration

The default configuration is as follows

{
  files = { ".git" },
  events = {
    entered = nil, --Set a function here
  },
}

Usage

Open proot picker by calling :Proot
In proot picker you can use d to delete project dir

Tips

I like to close all buffers and restart lsp after I switch repo

events = {
  entered = function ()
    vim.cmd("bufdo bd")
    vim.cmd("LspRestart")
  end
}

Similar Plugin

ahmedkhalf/project.nvim - The superior project management solution for neovim.

About

Lightweight project navigator with telescope

Topics

Resources

License

Stars

Watchers

Forks

Languages

0