Easily find your project's root directory.
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
}
require('telescope.builtin').find_files({
cwd = require("root").find() or vim.fn.expand('%:p:h')
})