blob: 0b81defa6ff88057e02acf269151a5ce7a33d19c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
local M = {}
local HOME = os.getenv("HOME")
local CWD = vim.fn.getcwd()
M.Projects = {
MetaC = {
Path = HOME .. "/proj/metac",
Options = function()
vim.o.makeprg = M.Projects.MetaC.Path .. "/misc/build.sh"
end,
},
}
M.InProject = false
for At, Project in pairs(M.Projects) do
if string.find(CWD, Project.Path) then
M.InProject = true
Project.Options()
end
end
return M
|