refactor: use more flexible paths (#1381)

This commit is contained in:
kylo252 2021-09-13 11:28:15 +02:00 committed by GitHub
parent 38b0c3d860
commit 8eed75d67f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
15 changed files with 216 additions and 153 deletions

View file

@ -95,7 +95,7 @@ local function get_log_path(name)
local logger = require "core.log"
local file
if name == "nvim" then
file = CACHE_PATH .. "/log"
file = utils.join_paths(get_cache_dir(), "log")
else
file = logger:new({ plugin = name }):get_path()
end