From ba9664ce7b0542b79b90971b897ed8bd65c30cbe Mon Sep 17 00:00:00 2001 From: Ali Almohaya Date: Sun, 25 Sep 2022 23:53:23 +0300 Subject: [PATCH] chore: add todos to the main files --- lua/openingh/init.lua | 22 +++++++++++++++++++++- lua/openingh/utils.lua | 8 ++++++++ 2 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 lua/openingh/utils.lua diff --git a/lua/openingh/init.lua b/lua/openingh/init.lua index 69108cd..7ab538c 100644 --- a/lua/openingh/init.lua +++ b/lua/openingh/init.lua @@ -1 +1,21 @@ -print("HELLOO FROM LUAS") + +local M = { + setup = function (debug) + -- TODO - 1: add the repo path to global var + if (debug) then + print("debugging openingh.nvim") + end + end, + + openFile = function () + -- TODO - 1: get the url from git folder + -- TODO - 2: get the current line in the buffer and add it to the file url + -- TODO - 3: get the selected range in the buffer and add it to the file url + end, + + openRepo = function () + -- TODO - 1: get the remote url and open it + end +} + +return M diff --git a/lua/openingh/utils.lua b/lua/openingh/utils.lua new file mode 100644 index 0000000..3a2036d --- /dev/null +++ b/lua/openingh/utils.lua @@ -0,0 +1,8 @@ +local M = { + get_git_dir = function () + end, + get_selection_numbers = function () + end +} + +return M