-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathproject.lua
More file actions
57 lines (54 loc) · 1.4 KB
/
Copy pathproject.lua
File metadata and controls
57 lines (54 loc) · 1.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
local M = {
"DrKJeff16/project.nvim",
dependencies = { "folke/snacks.nvim" },
cmd = {
"Project",
"ProjectAdd",
"ProjectConfig",
"ProjectDelete",
"ProjectExport",
"ProjectFzf", -- If using `fzf-lua` integration
"ProjectHealth",
"ProjectHistory",
"ProjectImport",
"ProjectLog", -- If logging is enabled
"ProjectRecents",
"ProjectRoot",
"ProjectSession",
"ProjectSnacks", -- If using `snacks.nvim` integration
},
}
function M.config()
require("project").setup({
active = true,
on_config_done = nil,
manual_mode = false,
detection_methods = { "pattern" },
patterns = {
".git",
"_darcs",
".hg",
".bzr",
".svn",
"Makefile",
"package.json",
"pom.xml",
"Make",
"system",
".pre-commit-config.yaml",
".pre-commit-config.yml",
"pyproject.yaml",
"pyproject.toml",
},
snacks = { enabled = true },
ignore_lsp = {},
exclude_dirs = {},
show_hidden = false,
silent_chdir = true,
scope_chdir = "global",
})
vim.keymap.set("n", "<c-p>", function()
require("snacks").picker.projects()
end, { desc = "Open projects picker" })
end
return M