Since lazy.nvim reloads the plugins when the spec is modified, I'm trying to have my user configurations in the shape of local plugins.
I have 4 files with the same structure:
local function func ()
--------------------------------------------------------------------------------
--- Regular nvim lua config
--------------------------------------------------------------------------------
end
return {
name = "config.configtype",
dir = '.',
dev = true,
lazy = false,
priority = 999,
config = func
}
Since "config" is run when a plugin is loaded, this does the job quite well.
The problem comes when I try to have multiple files like this. My guess is that since they all share "dir", there's a silent conflict where only one of them is loaded.
I've thought to link them to arbitrary empty folders, but that feels dumb and I think that it might be a better way.
It works the same whether the "dev" option is there, missing or false.
If I remove "dir", the plugins don't load at all.
Thanks to everybody!