Get rid of camelCasing

This commit is contained in:
PlaiyTiziano 2023-04-08 20:30:49 +02:00
parent faf75f3e0a
commit 01974bb315
3 changed files with 5 additions and 5 deletions

View file

@ -56,7 +56,7 @@ function M.open_file(
end end
end end
function M.openRepo() function M.open_repo()
-- make sure to update the current directory -- make sure to update the current directory
M.setup() M.setup()
if M.is_no_git_origin then if M.is_no_git_origin then

View file

@ -38,7 +38,7 @@ function M.parse_gh_remote(url)
end end
-- get the remote default branch -- get the remote default branch
function M.get_defualt_branch() function M.get_default_branch()
-- will return origin/[branch_name] -- will return origin/[branch_name]
local branch_with_origin = vim.fn.system("git rev-parse --abbrev-ref origin/HEAD") local branch_with_origin = vim.fn.system("git rev-parse --abbrev-ref origin/HEAD")
local branch_name = M.split(branch_with_origin, "/")[2] local branch_name = M.split(branch_with_origin, "/")[2]
@ -72,8 +72,8 @@ end
-- get the line number in the buffer -- get the line number in the buffer
function M.get_line_number_from_buf() function M.get_line_number_from_buf()
local lineNum = vim.api.nvim_win_get_cursor(0)[1] local line_num = vim.api.nvim_win_get_cursor(0)[1]
return lineNum return line_num
end end
-- opens a url in the correct OS -- opens a url in the correct OS

View file

@ -16,5 +16,5 @@ end, {
}) })
vim.api.nvim_create_user_command("OpenInGHRepo", function() vim.api.nvim_create_user_command("OpenInGHRepo", function()
openingh.openRepo() openingh.open_repo()
end, {}) end, {})