-
Starting a discussion because I'm not sure if this is intended behaviour. As of v11 (I'm not sure which minor version exactly, but I am currently on 0507e19, v11.9.0), the vast majority of plugin specs with repro.lua-- DO NOT change the paths and don't remove the colorscheme
local root = vim.fn.fnamemodify("./.repro", ":p")
-- set stdpaths to use .repro
for _, name in ipairs({ "config", "data", "state", "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", "https://github.com/folke/lazy.nvim.git", lazypath, })
end
vim.opt.runtimepath:prepend(lazypath)
-- install plugins
local plugins = {
"folke/tokyonight.nvim",
-- add any other plugins here
{
dir = "",
name = "lspconfig-texlab",
ft = { "tex", "plaintex", "bib" },
dependencies = "neovim/nvim-lspconfig",
config = function(_, opts)
require "lspconfig".texlab.setup(opts)
end
},
{
dir = "",
name = "lspconfig-typstlsp",
ft = "typst",
dependencies = "neovim/nvim-lspconfig",
config = function(_, opts)
require "lspconfig".typst_lsp.setup(opts)
end
},
{
dir = "",
name = "test-empty",
},
}
require("lazy").setup(plugins, {
root = root .. "/plugins",
})
vim.cmd.colorscheme("tokyonight")
-- add anything else here
Upon running There do appear to be some exceptions to this in my setup, for some reason - Is this intended behaviour? If so, how should I create dummy plugins in v11? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Might be tangentially related to #1588 (comment), particularly:
But I don't fully understand what was meant by this, or what the alternative is. |
Beta Was this translation helpful? Give feedback.
-
What do you even want to achieve with an empty dir? There's literally nothing in the documentation that says this is valid |
Beta Was this translation helpful? Give feedback.
The spec is not invalid, an empty dir probably resolves to the current directory.
And yes, all specs from the same directory are merged in one.
If that didn't work like this before, then that was a bug.