Isrothy/neominimap.nvim

When Neovim launches with filenames, it ignores winhighlight.

delphinus opened this issue · 2 comments

When I launch Neovim with a command such as nvim foo_bar.lua, it ignores NeominimapFoo highlights in setup.

local lazypath = vim.fn.stdpath "data" .. "/lazy/lazy.nvim"
if not (vim.uv or vim.loop).fs_stat(lazypath) then
  vim.fn.system {
    "git",
    "clone",
    "--filter=blob:none",
    "https://github.com/folke/lazy.nvim.git",
    "--branch=stable", -- latest stable release
    lazypath,
  }
end
vim.opt.rtp:prepend(lazypath)

require("lazy").setup({
  { "nvim-treesitter/nvim-treesitter", build = ':TSInstall lua' },
  {
    "Isrothy/neominimap.nvim",
    init = function()
      vim.opt.wrap = false       -- Recommended
      vim.opt.sidescrolloff = 36 -- It's recommended to set a large value
      vim.g.neominimap = {
        auto_enable = true,
      }
      vim.api.nvim_set_hl(0, "NeominimapCursorLine", { bg = "#ffffff" })
    end,
  },
})
  1. nvim foo_bar.lua with settings above.
  2. I expect this config makes CursorLine be white (#ffffff) color, but it does not.
スクリーンショット 2024-07-14 0 30 38

Has fd97608 solved your issue?

Yes, this is also solved. Thank you.