Skip to content

yyk/find-git-root.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

find-git-root.nvim

Command to cd to the git root of the current buffer

Installation

use { "yyk/find-git-root.nvim" }

Usage

:CdGitRoot

This function is available too.

-- returns the git root directory if found, else nil
require("find-git-root").find_git_root()

TODO

It's very dumb now, just traverses 10 levels up and look for existence .git directory. Maybe that's enough.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages