-
I have a monorepo, invoking |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Yes this is the intended design and no plans to add this as functionality. If you browse the init.lua file you can see the plugin's logic. It may well be possible to add this to your own config by extending the plugin. |
Beta Was this translation helpful? Give feedback.
-
My lazy config for future searchers wondering how to use in mono repos {
"olimorris/persisted.nvim",
lazy = false, -- make sure the plugin is always loaded at startup
opts = {
autoload = true,
autosave = true,
use_git_branch = true,
},
config = function(_, opts)
local persisted = require("persisted");
-- use_git_branch not working from sub directory of git project https://github.com/olimorris/persisted.nvim/discussions/149
persisted.branch = function()
local branch = vim.fn.systemlist("git branch --show-current")[1]
return vim.v.shell_error == 0 and branch or nil
end
persisted.setup(opts);
end,
init = function()
vim.o.sessionoptions = "blank,buffers,curdir,folds,help,tabpages,winsize,winpos,terminal,localoptions"
end
} |
Beta Was this translation helpful? Give feedback.
My lazy config for future searchers wondering how to use in mono repos