1

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!

1
  • So you want to write your remap config and your options inside the plugin folder? Or outside it? So they can be manages with lazy.nvim? Commented Oct 19 at 9:35

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.