blob: e2ad00ac8afbbbab0f6626c5d15b6e7e1f29636a (
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/metac_build"
end,
},
}
M.InProject = false
for _, Project in pairs(M.Projects) do
if string.find(CWD, Project.Path) then
M.InProject = true
Project.Options()
end
end
return M
|