Files
telescope-project.nvim/lua/telescope/_extensions/project.lua
Logan Connolly 4038a73667 Feat/Add Project Scanner (#34)
* feat: support base_dir option for searching for git repos

* style: fix indentation

* fix: only close file if exists

* fix: explicitly set to false if base_dir not set

* refactor: always initialize project file

* refactor: separate project extraction and project writing

* fix: iterate with pairs and no arg for io.lines

* refactor: restructure, test, and lint

* refactor: use standard telescope file structure

* refactor: utilize utility functions for actions module

* refactor: support max_depth arg for recursive searching

* chore: add Makefile for linting and testing

* test: add utils general tests

* refactor: do not need file_exists function

* test: add tests for creating, writing and reading projects

* chore: move location of tests

* test: add tests for git project scanning

* test: do not need minimal_init.vim now

* test: clean up tests

* refactor: update git projects on setup
2021-06-14 19:31:55 +01:00

15 lines
395 B
Lua

local has_telescope, telescope = pcall(require, 'telescope')
local main = require('telescope._extensions.project.main')
local utils = require('telescope._extensions.project.utils')
if not has_telescope then
error('This plugins requires nvim-telescope/telescope.nvim')
end
utils.init_file()
return telescope.register_extension{
setup = main.setup,
exports = { project = main.project }
}