diff options
Diffstat (limited to 'lua/config/projects.lua')
| -rw-r--r-- | lua/config/projects.lua | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lua/config/projects.lua b/lua/config/projects.lua index 9a6ecda..0b81def 100644 --- a/lua/config/projects.lua +++ b/lua/config/projects.lua @@ -1,22 +1,22 @@ local M = {} --- TODO: windows local HOME = os.getenv("HOME") local CWD = vim.fn.getcwd() --- NOTE(luca): This must be global so that the path can be referenced in the Options function M.Projects = { - Metac = { + MetaC = { Path = HOME .. "/proj/metac", Options = function() - vim.o.makeprg = M.Projects.Metac.Path .. "/misc/build.sh" + vim.o.makeprg = M.Projects.MetaC.Path .. "/misc/build.sh" end, }, } -for _, Project in pairs(M.Projects) do +M.InProject = false + +for At, Project in pairs(M.Projects) do if string.find(CWD, Project.Path) then - M.IsInProject = true + M.InProject = true Project.Options() end end |
