diff --git a/rplugin/python3/nvim_http/response.py b/rplugin/python3/nvim_http/response.py index 43de1f5..abc7ad3 100644 --- a/rplugin/python3/nvim_http/response.py +++ b/rplugin/python3/nvim_http/response.py @@ -1,12 +1,10 @@ from http.client import responses import json - from pynvim import Nvim - from .opts import HttpRequestOptions - -response_bufname = "/tmp/response.http" - +import tempfile +import os +response_bufname = os.path.join(tempfile.gettempdir(), "response.http") def get_http_response_buf(nvim: Nvim): """