Skip to content

Commit 55d9fe8

Browse files
authored
fix: re-add .log extension to plugin bases logfile name (#546)
1 parent 366b083 commit 55d9fe8

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lua/plenary/log.lua

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,10 @@ local unpack = unpack or table.unpack
7979
log.new = function(config, standalone)
8080
config = vim.tbl_deep_extend("force", default_config, config)
8181

82-
local outfile =
83-
vim.F.if_nil(config.outfile, Path:new(vim.api.nvim_call_function("stdpath", { "cache" }), config.plugin).filename)
82+
local outfile = vim.F.if_nil(
83+
config.outfile,
84+
Path:new(vim.api.nvim_call_function("stdpath", { "cache" }), config.plugin .. ".log").filename
85+
)
8486

8587
local obj
8688
if standalone then

0 commit comments

Comments
 (0)