Skip to content
This repository has been archived by the owner on Apr 16, 2024. It is now read-only.

feat: Move log files to $XDG_CACHE_HOME #107

Draft
wants to merge 1 commit into
base: develop
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lua/doom/extras/logging/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ local unpack = unpack or table.unpack
log.new = function(config, standalone)
config = vim.tbl_deep_extend("force", default_config, config)

local outfile = ("%s/%s.log"):format(vim.fn.stdpath("data"), config.plugin)
local outfile = ("%s/%s.log"):format(vim.fn.stdpath("cache"), config.plugin)

local obj
if standalone then
Expand Down