mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-28 19:50:09 +02:00
feat: allow a custom path for lazyvim.json
. Fixes #3856
This commit is contained in:
parent
ee44b21898
commit
131187c092
2 changed files with 3 additions and 4 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue