desdic/telescope-rooter.nvim

github github
project
stars 17
issues 0
subscribers 1
forks 1
CREATED

2022-11-26

UPDATED

last year


telescope-rooter

What is telescope-rooter

telescope-rooter.nvim is a extension for the telescope neovim plugin. telescope-rooter.nvim changes the working directory to the to the project/root path before the TelescopePrompt is started and restores the working directory to the previous once closed.

Requirements

This plugins requires telescope.nvim and plenary

Installation

using packer

use("desdic/telescope-rooter.nvim")

Enabling in telescope

require "telescope".load_extension("rooter")

Default configuration

require("telescope").extensions = {
    rooter = {
       enable = true,
       patterns = { ".git" },
       debug = false
    }
}

Note that if one of the patterns are not found it will not change the current working directory

Usage

telescope-rooter.nvim can be enabled/disabled using :Telescope rooter toggle

TODO

  • automatic testing via github