diff options
author | Raymaekers Luca <luca@spacehb.net> | 2025-03-17 15:43:07 +0100 |
---|---|---|
committer | Raymaekers Luca <luca@spacehb.net> | 2025-03-17 15:43:32 +0100 |
commit | 4e31578c1e4b9e989cec824e3e832ac2aa66efcd (patch) | |
tree | c7d3851efcb6c31953b6af2cce102ae315f4cfb4 /lua/config/projects.lua | |
parent | 53f6e19f84ba06bbf143339deba84bc51cd6706e (diff) |
checkpoint
Diffstat (limited to 'lua/config/projects.lua')
-rw-r--r-- | lua/config/projects.lua | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/lua/config/projects.lua b/lua/config/projects.lua new file mode 100644 index 0000000..0b81def --- /dev/null +++ b/lua/config/projects.lua @@ -0,0 +1,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 |