Closed nDimensionalSpace closed 11 months ago
This is far too broad for me to give you much useful information. If you can provide a minimal repro config file and steps to reproduce the issue, I might be able to help
-- save as repro.lua
-- run with nvim -u repro.lua
-- DO NOT change the paths
local root = vim.fn.fnamemodify("./.repro", ":p")
-- set stdpaths to use .repro
for _, name in ipairs({ "config", "data", "state", "runtime", "cache" }) do
vim.env[("XDG_%s_HOME"):format(name:upper())] = root .. "/" .. name
end
-- bootstrap lazy
local lazypath = root .. "/plugins/lazy.nvim"
if not vim.loop.fs_stat(lazypath) then
vim.fn.system({
"git",
"clone",
"--filter=blob:none",
"--single-branch",
"https://github.com/folke/lazy.nvim.git",
lazypath,
})
end
vim.opt.runtimepath:prepend(lazypath)
-- install plugins
local plugins = {
"folke/tokyonight.nvim",
{
"stevearc/resession.nvim",
config = function()
require("resession").setup({
-- add any needed settings here
})
end,
},
-- add any other plugins here
}
require("lazy").setup(plugins, {
root = root .. "/plugins",
})
vim.cmd.colorscheme("tokyonight")
-- add anything else here
Yeah, I anticipated that the question was too general. I have done basically no debugging of neovim/plugins, so I was not sure how to proceed . . . I will get back in the next few days. Thanks.
Grrr . . . So, this is working just fine in isolation. Something about the interaction with NvChad is causing the problem. I will close for now. Thanks for the help.
The plugin seems to only load the buffer with the focus when the session was saved, no matter the number of existing buffers. recession is latest, nvim is 0.9.0, NvChad is latest. Saving seems to indicate success via screen output. To the extent that buf_filter might affect this, I defined it as a function that always returns true, but no change.
Thanks.