aboutsummaryrefslogtreecommitdiffstats
path: root/lua/alpha/composer.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/alpha/composer.lua')
-rw-r--r--lua/alpha/composer.lua32
1 files changed, 0 insertions, 32 deletions
diff --git a/lua/alpha/composer.lua b/lua/alpha/composer.lua
deleted file mode 100644
index 4792979..0000000
--- a/lua/alpha/composer.lua
+++ /dev/null
@@ -1,32 +0,0 @@
-local M = {}
-
-local function get_composer_file()
- if vim.fn.findfile("composer.json") ~= "" then
- return vim.fn.json_decode(vim.fn.readfile(vim.fn.getcwd() .. "/composer.json"))
- end
-
- if vim.fn.findfile("master/composer.json") ~= "" then
- return vim.fn.json_decode(vim.fn.readfile(vim.fn.getcwd() .. "/master/composer.json"))
- end
-
- return nil
-end
-
-M.query = function (path)
- local target = get_composer_file()
-
- if target == nil then
- return nil
- end
-
- for _, part in ipairs(path) do
- target = target[part]
- if target == nil then
- return nil
- end
- end
-
- return target
-end
-
-return M