Skip to content

Conversation

@WilfSilver
Copy link
Contributor

Closes #1476

📑 Description

Fixes the bug reported in #1476, while still supporting opts.

Summary: due to when neominimap.nvim looks at the config file, it means that setting the options in config doesn't actually work, instead it must be set during init.

ℹ Additional Information

Minimal test

This is similar to the minimum viable reproducible config, but instead using my version of astrocommunity 😄

-- 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
  -- stylua: ignore
  vim.fn.system({ "git", "clone", "--filter=blob:none", "https://github.com/folke/lazy.nvim.git", "--branch=stable", lazypath })
end
vim.opt.rtp:prepend(vim.env.LAZY or lazypath)

-- install plugins
local plugins = {
  { "AstroNvim/AstroNvim", import = "astronvim.plugins" },
  {
     "AstroNvim/astrocommunity",
     { import = "astrocommunity.split-and-window.neominimap-nvim" },
  },
  {
     "Isrothy/neominimap.nvim",
     opts = {
       layout = "split",
       split = {
         minimap_width = 10,
       },
    },
   },
}
require("lazy").setup(plugins, {
  root = root .. "/plugins",
})

@github-actions
Copy link

github-actions bot commented May 2, 2025

Review Checklist

Does this PR follow the [Contribution Guidelines](development guidelines)? Following is a partial checklist:

Proper conventional commit scoping:

  • If you are adding a new plugin, the scope would be the name of the category it is being added into. ex. feat(utility): added noice.nvim plugin

  • If you are modifying a pre-existing plugin or pack, the scope would be the name of the plugin folder. ex. fix(noice-nvim): fix LSP handler error

  • Pull request title has the appropriate conventional commit type and scope where the scope is the name of the pre-existing directory in the project as described above

  • README is properly formatted and uses fenced in links with <url> unless they are inside a [title](url)

  • Entry returns a single plugin spec with the new plugin as the only top level spec (not applicable for recipes or packs).

  • Proper usage of opts table rather than setting things up with the config function.

  • Proper usage of specs table for all specs that are not dependencies of a given plugin (not applicable for recipes or packs).

@Uzaaft Uzaaft merged commit 5b30339 into AstroNvim:main May 6, 2025
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Can't alter the Neominimap config

2 participants