Modified project_id logic to require .gitlab.nvim file

This commit is contained in:
Harrison Cramer
2023-05-19 18:20:16 -07:00
parent ca7c702fd0
commit 27ec4668c1
4 changed files with 13 additions and 20 deletions

View File

@@ -39,7 +39,7 @@ M.list_discussions = function()
if u.base_invalid() then return end
Job:new({
command = "curl",
args = { "-s", "localhost:8081/" .. "discussions" },
args = { "-s", string.format("localhost:%s/discussions", state.PORT) },
on_stdout = function(_, output)
local data_ok, data = pcall(vim.json.decode, output)
if data_ok and data ~= nil then