aboutsummaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
authorWilliam Boman <william@redwill.se>2022-10-06 01:41:08 +0200
committerGitHub <noreply@github.com>2022-10-06 01:41:08 +0200
commit632f56cceb3f67f27fe1869480ae8c4be3838a42 (patch)
treea13251f273ed393e74992f3fe9e572f925e15cf9 /lua
parentfeat: add setting to control PATH modification (#514) (diff)
downloadmason-632f56cceb3f67f27fe1869480ae8c4be3838a42.tar
mason-632f56cceb3f67f27fe1869480ae8c4be3838a42.tar.gz
mason-632f56cceb3f67f27fe1869480ae8c4be3838a42.tar.bz2
mason-632f56cceb3f67f27fe1869480ae8c4be3838a42.tar.lz
mason-632f56cceb3f67f27fe1869480ae8c4be3838a42.tar.xz
mason-632f56cceb3f67f27fe1869480ae8c4be3838a42.tar.zst
mason-632f56cceb3f67f27fe1869480ae8c4be3838a42.zip
fix(log): use "log" stdpath (#516)
Closes #430.
Diffstat (limited to 'lua')
-rw-r--r--lua/mason-core/log.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/lua/mason-core/log.lua b/lua/mason-core/log.lua
index 91505156..245db518 100644
--- a/lua/mason-core/log.lua
+++ b/lua/mason-core/log.lua
@@ -32,7 +32,7 @@ local config = {
local log = {
outfile = path.concat {
- vim.fn.stdpath "cache", -- TODO use "log" when stable
+ (vim.fn.has "nvim-0.8.0" == 1) and vim.fn.stdpath "log" or vim.fn.stdpath "cache",
("%s.log"):format(config.name),
},
}