Fix: Allows you to open up gitlab.nvim even in nested directories (#107)

This MR is a #patch fix that ensures you can provide a `.gitlab.nvim`
file at the root of the git project and open up the reviewer at any
level of the project.
This commit is contained in:
Harrison (Harry) Cramer
2023-11-18 16:31:06 -05:00
committed by GitHub
parent 231972607d
commit 8a9f8dfc88
2 changed files with 12 additions and 1 deletions

View File

@@ -141,6 +141,7 @@ M.see_logs = function()
bufnr = vim.api.nvim_get_current_buf()
vim.api.nvim_buf_set_lines(bufnr, 0, -1, false, lines)
-- TODO: Fix for Windows
local job_file_path = string.format("/tmp/gitlab.nvim.job-%d", j.id)
vim.cmd("w! " .. job_file_path)
vim.cmd.bd()