When Neovim launches with filenames, it ignores winhighlight.
delphinus opened this issue · 2 comments
delphinus commented
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,
},
})
nvim foo_bar.lua
with settings above.- I expect this config makes CursorLine be white (
#ffffff
) color, but it does not.
delphinus commented
Yes, this is also solved. Thank you.