Skip to content

gmartsenkov/root.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

root.nvim

Easily find your project's root directory.

Installation

Most of the source code is written in Rust so in order to build the plugin Rust needs to be installed on the system.

Using lazy.nvim

{
  "gmartsenkov/root.nvim",
  lazy = false,
  build = "make",
  config = function()
    require("root").setup {
        patterns = { ".git", "Gemfile" }
      }
  end
}

Example Usage

  require('telescope.builtin').find_files({
    cwd = require("root").find() or vim.fn.expand('%:p:h')
  })

About

Find your project root

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published