aboutsummaryrefslogtreecommitdiff
path: root/lua/user/project.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/user/project.lua')
-rw-r--r--lua/user/project.lua20
1 files changed, 20 insertions, 0 deletions
diff --git a/lua/user/project.lua b/lua/user/project.lua
new file mode 100644
index 0000000..efb60b2
--- /dev/null
+++ b/lua/user/project.lua
@@ -0,0 +1,20 @@
+local status_ok, project = pcall(require, "project_nvim")
+if not status_ok then
+ return
+end
+
+project.setup({
+ detection_methods= { 'pattern' },
+ patterns = { '.git' },
+ show_hidden = false,
+ silent_chdir = true,
+ manual_mode = false,
+ datapath = vim.fn.stdpath("data"),
+})
+
+local status_ok, telescope = pcall(require, "telescope")
+if not status_ok then
+ return
+end
+
+telescope.load_extension('projects')