aboutsummaryrefslogtreecommitdiffstats
path: root/nvim/lua/user/project.lua
diff options
context:
space:
mode:
authorMatthew Lemon <y@yulqen.org>2023-05-14 09:10:26 +0100
committerMatthew Lemon <y@yulqen.org>2023-05-14 09:10:26 +0100
commit0721b537a8aa3be8b70c183b25951494df9dcd0e (patch)
treeeff07bbc31aeefbb9d2e441bb5ca8b5a5a527ffb /nvim/lua/user/project.lua
parent10a89dfbc6bc57ce12c8cf90f1b38a34b728b369 (diff)
Installs nvim config base-idea
Diffstat (limited to 'nvim/lua/user/project.lua')
-rw-r--r--nvim/lua/user/project.lua29
1 files changed, 29 insertions, 0 deletions
diff --git a/nvim/lua/user/project.lua b/nvim/lua/user/project.lua
new file mode 100644
index 0000000..a7aac6f
--- /dev/null
+++ b/nvim/lua/user/project.lua
@@ -0,0 +1,29 @@
+local M = {
+ "ahmedkhalf/project.nvim",
+ commit = "685bc8e3890d2feb07ccf919522c97f7d33b94e4",
+ dependencies = {
+ {
+ "nvim-telescope/telescope.nvim",
+ commit = "203bf5609137600d73e8ed82703d6b0e320a5f36",
+ event = "Bufenter",
+ cmd = { "Telescope" },
+ },
+ },
+}
+
+function M.config()
+ local project = require "project_nvim"
+ project.setup {
+
+ -- detection_methods = { "lsp", "pattern" }, -- NOTE: lsp detection will get annoying with multiple langs in one project
+ detection_methods = { "pattern" },
+
+ -- patterns used to detect root dir, when **"pattern"** is in detection_methods
+ patterns = { ".git", "Makefile", "package.json" },
+ }
+
+ local telescope = require "telescope"
+ telescope.load_extension "projects"
+end
+
+return M