Adds `.gitlab.nvim` configuration file option.
This commit is contained in:
Harrison (Harry) Cramer
2023-04-22 14:19:12 -04:00
committed by GitHub
parent 899e04082e
commit 08463c0b84
3 changed files with 39 additions and 1 deletions

View File

@@ -204,7 +204,16 @@ M.merge_tables = function(defaults, overrides)
return result
end
function read_file(file_path)
local file = io.open(file_path, "r")
if file == nil then
return nil
end
local file_contents = file:read("*all")
file:close()
file_contents = string.gsub(file_contents, "\n", "")
return file_contents
end
M.get_relative_file_path = get_relative_file_path
M.get_current_line_number = get_current_line_number