diff --git a/lua/openingh/init.lua b/lua/openingh/init.lua index b266710..d2f9650 100644 --- a/lua/openingh/init.lua +++ b/lua/openingh/init.lua @@ -56,7 +56,7 @@ function M.open_file( end end -function M.openRepo() +function M.open_repo() -- make sure to update the current directory M.setup() if M.is_no_git_origin then diff --git a/lua/openingh/utils.lua b/lua/openingh/utils.lua index bc06b66..daa8d00 100644 --- a/lua/openingh/utils.lua +++ b/lua/openingh/utils.lua @@ -38,7 +38,7 @@ function M.parse_gh_remote(url) end -- get the remote default branch -function M.get_defualt_branch() +function M.get_default_branch() -- will return origin/[branch_name] local branch_with_origin = vim.fn.system("git rev-parse --abbrev-ref origin/HEAD") local branch_name = M.split(branch_with_origin, "/")[2] @@ -72,8 +72,8 @@ end -- get the line number in the buffer function M.get_line_number_from_buf() - local lineNum = vim.api.nvim_win_get_cursor(0)[1] - return lineNum + local line_num = vim.api.nvim_win_get_cursor(0)[1] + return line_num end -- opens a url in the correct OS diff --git a/plugin/openingh.lua b/plugin/openingh.lua index 16223ab..51ea601 100644 --- a/plugin/openingh.lua +++ b/plugin/openingh.lua @@ -16,5 +16,5 @@ end, { }) vim.api.nvim_create_user_command("OpenInGHRepo", function() - openingh.openRepo() + openingh.open_repo() end, {})