Skip to content

Commit 5b30339

Browse files
authored
fix(neominimap-nvim): set options within init instead of config (#1477)
1 parent b2bff54 commit 5b30339

File tree

1 file changed

+4
-1
lines changed
  • lua/astrocommunity/split-and-window/neominimap-nvim

1 file changed

+4
-1
lines changed

lua/astrocommunity/split-and-window/neominimap-nvim/init.lua

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,10 @@ return {
2020
opts = {
2121
buf_filter = function(bufnr) return require("astrocore.buffer").is_valid(bufnr) end,
2222
},
23-
config = function(_, opts)
23+
config = function() end,
24+
init = function(plugin)
25+
local opts = plugin.opts
26+
2427
if opts.layout == nil or opts.layout == "float" then
2528
local float_width = (vim.tbl_get(opts, "float", "minimap_width") or 20) + 2
2629
if vim.opt.sidescrolloff:get() < float_width then vim.opt.sidescrolloff = float_width end

0 commit comments

Comments
 (0)