Skip to content

Commit 116b885

Browse files
authored
chore: use stdpath "log" rather than "cache" (#2372)
1 parent 0a54dcb commit 116b885

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

doc/nvim-tree-lua.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1332,8 +1332,8 @@ In the event of a problem please disable the experiment and raise an issue.
13321332
Configuration for diagnostic logging.
13331333

13341334
*nvim-tree.log.enable*
1335-
Enable logging to a file `nvim-tree.log` in |stdpath| `"cache"`, usually
1336-
`$XDG_CACHE_HOME/nvim`
1335+
Enable logging to a file `nvim-tree.log` in |stdpath| `"log"`, usually
1336+
`${XDG_STATE_HOME}/nvim`
13371337
Type: `boolean`, Default: `false`
13381338

13391339
*nvim-tree.log.truncate*

lua/nvim-tree/log.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ end
7171
function M.setup(opts)
7272
M.config = opts.log
7373
if M.config and M.config.enable and M.config.types then
74-
M.path = string.format("%s/nvim-tree.log", vim.fn.stdpath "cache", os.date "%H:%M:%S", vim.env.USER)
74+
M.path = string.format("%s/nvim-tree.log", vim.fn.stdpath "log", os.date "%H:%M:%S", vim.env.USER)
7575
if M.config.truncate then
7676
os.remove(M.path)
7777
end

0 commit comments

Comments
 (0)