feat: allow a custom path for lazyvim.json. Fixes #3856

This commit is contained in:
Folke Lemaitre 2024-06-29 21:19:13 +02:00
parent ee44b21898
commit 131187c092
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040
2 changed files with 3 additions and 4 deletions

View file

@ -45,8 +45,7 @@ end
function M.save()
LazyVim.config.json.data.version = LazyVim.config.json.version
local path = vim.fn.stdpath("config") .. "/lazyvim.json"
local f = io.open(path, "w")
local f = io.open(LazyVim.config.json.path, "w")
if f then
f:write(LazyVim.json.encode(LazyVim.config.json.data))
f:close()